// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gen_grammar.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$_Type _$$_TypeFromJson(Map json) => _$_Type( type: json['type'] as String, named: json['named'] as bool, fields: (json['fields'] as Map?)?.map( (k, e) => MapEntry(k, Field.fromJson(e as Map)), ) ?? const {}, children: json['children'] == null ? null : Field.fromJson(json['children'] as Map), subtypes: (json['subtypes'] as List?) ?.map((e) => Type.fromJson(e as Map)) .toList() ?? const [], ); Map _$$_TypeToJson(_$_Type instance) => { 'type': instance.type, 'named': instance.named, 'fields': instance.fields, 'children': instance.children, 'subtypes': instance.subtypes, }; _$_Field _$$_FieldFromJson(Map json) => _$_Field( multiple: json['multiple'] as bool, required: json['required'] as bool, types: (json['types'] as List?) ?.map((e) => Type.fromJson(e as Map)) .toList() ?? const [], ); Map _$$_FieldToJson(_$_Field instance) => { 'multiple': instance.multiple, 'required': instance.required, 'types': instance.types, };