// GENERATED CODE - DO NOT MODIFY BY HAND part of 'kitchen_sink.non_nullable.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** KitchenSink _$KitchenSinkFromJson(Map json) { return KitchenSink( ctorValidatedNo42: json['no-42'] as int, iterable: json['iterable'] as List, dynamicIterable: json['dynamicIterable'] as List, objectIterable: json['objectIterable'] as List, intIterable: (json['intIterable'] as List).map((e) => e as int), dateTimeIterable: (json['datetime-iterable'] as List) .map((e) => DateTime.parse(e as String))) ..dateTime = DateTime.parse(json['dateTime'] as String) ..set = (json['set'] as List).map((e) => e).toSet() ..dynamicSet = (json['dynamicSet'] as List).map((e) => e).toSet() ..objectSet = (json['objectSet'] as List).map((e) => e).toSet() ..intSet = (json['intSet'] as List).map((e) => e as int).toSet() ..dateTimeSet = (json['dateTimeSet'] as List) .map((e) => DateTime.parse(e as String)) .toSet() ..list = json['list'] as List ..dynamicList = json['dynamicList'] as List ..objectList = json['objectList'] as List ..intList = (json['intList'] as List).map((e) => e as int).toList() ..dateTimeList = (json['dateTimeList'] as List) .map((e) => DateTime.parse(e as String)) .toList() ..map = json['map'] as Map ..stringStringMap = Map.from(json['stringStringMap'] as Map) ..dynamicIntMap = Map.from(json['dynamicIntMap'] as Map) ..objectDateTimeMap = (json['objectDateTimeMap'] as Map) .map((k, e) => MapEntry(k, DateTime.parse(e as String))) ..crazyComplex = (json['crazyComplex'] as List) .map((e) => (e as Map).map((k, e) => MapEntry( k as String, (e as Map).map((k, e) => MapEntry( k as String, (e as List) .map((e) => (e as List).map((e) => DateTime.parse(e as String)).toList()) .toList()))))) .toList() ..val = Map.from(json['val'] as Map) ..writeNotNull = json['writeNotNull'] as bool ..string = json[r'$string'] as String ..simpleObject = SimpleObject.fromJson(json['simpleObject'] as Map) ..strictKeysObject = StrictKeysObject.fromJson(json['strictKeysObject'] as Map) ..validatedPropertyNo42 = json['validatedPropertyNo42'] as int; } abstract class _$KitchenSinkSerializerMixin { int get ctorValidatedNo42; DateTime get dateTime; Iterable get iterable; Iterable get dynamicIterable; Iterable get objectIterable; Iterable get intIterable; Set get set; Set get dynamicSet; Set get objectSet; Set get intSet; Set get dateTimeSet; Iterable get dateTimeIterable; List get list; List get dynamicList; List get objectList; List get intList; List get dateTimeList; Map get map; Map get stringStringMap; Map get dynamicIntMap; Map get objectDateTimeMap; List>>>> get crazyComplex; Map get val; bool get writeNotNull; String get string; SimpleObject get simpleObject; StrictKeysObject get strictKeysObject; int get validatedPropertyNo42; Map toJson() => { 'no-42': ctorValidatedNo42, 'dateTime': dateTime.toIso8601String(), 'iterable': iterable.toList(), 'dynamicIterable': dynamicIterable.toList(), 'objectIterable': objectIterable.toList(), 'intIterable': intIterable.toList(), 'set': set.toList(), 'dynamicSet': dynamicSet.toList(), 'objectSet': objectSet.toList(), 'intSet': intSet.toList(), 'dateTimeSet': dateTimeSet.map((e) => e.toIso8601String()).toList(), 'datetime-iterable': dateTimeIterable.map((e) => e.toIso8601String()).toList(), 'list': list, 'dynamicList': dynamicList, 'objectList': objectList, 'intList': intList, 'dateTimeList': dateTimeList.map((e) => e.toIso8601String()).toList(), 'map': map, 'stringStringMap': stringStringMap, 'dynamicIntMap': dynamicIntMap, 'objectDateTimeMap': objectDateTimeMap.map((k, e) => MapEntry(k, e.toIso8601String())), 'crazyComplex': crazyComplex .map((e) => e.map((k, e) => MapEntry( k, e.map((k, e) => MapEntry( k, e .map((e) => e.map((e) => e.toIso8601String()).toList()) .toList()))))) .toList(), 'val': val, 'writeNotNull': writeNotNull, r'$string': string, 'simpleObject': simpleObject, 'strictKeysObject': strictKeysObject, 'validatedPropertyNo42': validatedPropertyNo42 }; } JsonConverterTestClass _$JsonConverterTestClassFromJson(Map json) { return JsonConverterTestClass() ..duration = durationConverter.fromJson(json['duration'] as int) ..durationList = (json['durationList'] as List) .map((e) => durationConverter.fromJson(e as int)) .toList() ..bigInt = const BigIntStringConverter().fromJson(json['bigInt'] as String) ..bigIntMap = (json['bigIntMap'] as Map).map((k, e) => MapEntry( k as String, const BigIntStringConverter().fromJson(e as String))) ..numberSilly = TrivialNumberConverter.instance.fromJson(json['numberSilly'] as int) ..numberSillySet = (json['numberSillySet'] as List) .map((e) => TrivialNumberConverter.instance.fromJson(e as int)) .toSet() ..dateTime = const EpochDateTimeConverter().fromJson(json['dateTime'] as int); } abstract class _$JsonConverterTestClassSerializerMixin { Duration get duration; List get durationList; BigInt get bigInt; Map get bigIntMap; TrivialNumber get numberSilly; Set get numberSillySet; DateTime get dateTime; Map toJson() => { 'duration': durationConverter.toJson(duration), 'durationList': durationList.map(durationConverter.toJson).toList(), 'bigInt': const BigIntStringConverter().toJson(bigInt), 'bigIntMap': bigIntMap.map( (k, e) => MapEntry(k, const BigIntStringConverter().toJson(e))), 'numberSilly': TrivialNumberConverter.instance.toJson(numberSilly), 'numberSillySet': numberSillySet.map(TrivialNumberConverter.instance.toJson).toList(), 'dateTime': const EpochDateTimeConverter().toJson(dateTime) }; } JsonConverterGeneric _$JsonConverterGenericFromJson( Map json) { return JsonConverterGeneric() ..item = GenericConverter().fromJson(json['item'] as Map) ..itemList = (json['itemList'] as List) .map((e) => GenericConverter().fromJson(e as Map)) .toList() ..itemMap = (json['itemMap'] as Map).map((k, e) => MapEntry(k as String, GenericConverter().fromJson(e as Map))); } abstract class _$JsonConverterGenericSerializerMixin { S get item; List get itemList; Map get itemMap; Map toJson() => { 'item': GenericConverter().toJson(item), 'itemList': itemList.map(GenericConverter().toJson).toList(), 'itemMap': itemMap.map((k, e) => MapEntry(k, GenericConverter().toJson(e))) }; }