// GENERATED CODE - DO NOT MODIFY BY HAND part of 'generic_class.wrapped.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GenericClass _$GenericClassFromJson( Map json) { return GenericClass() ..fieldObject = json['fieldObject'] == null ? null : GenericClass._dataFromJson( json['fieldObject'] as Map) ..fieldDynamic = json['fieldDynamic'] == null ? null : GenericClass._dataFromJson( json['fieldDynamic'] as Map) ..fieldInt = json['fieldInt'] == null ? null : GenericClass._dataFromJson(json['fieldInt'] as Map) ..fieldT = json['fieldT'] == null ? null : GenericClass._dataFromJson(json['fieldT'] as Map) ..fieldS = json['fieldS'] == null ? null : GenericClass._dataFromJson(json['fieldS'] as Map); } Map _$GenericClassToJson( GenericClass instance) => _$GenericClassJsonMapWrapper(instance); class _$GenericClassJsonMapWrapper extends $JsonMapWrapper { final GenericClass _v; _$GenericClassJsonMapWrapper(this._v); @override Iterable get keys => const ['fieldObject', 'fieldDynamic', 'fieldInt', 'fieldT', 'fieldS']; @override dynamic operator [](Object key) { if (key is String) { switch (key) { case 'fieldObject': return _v.fieldObject == null ? null : GenericClass._dataToJson(_v.fieldObject); case 'fieldDynamic': return _v.fieldDynamic == null ? null : GenericClass._dataToJson(_v.fieldDynamic); case 'fieldInt': return _v.fieldInt == null ? null : GenericClass._dataToJson(_v.fieldInt); case 'fieldT': return _v.fieldT == null ? null : GenericClass._dataToJson(_v.fieldT); case 'fieldS': return _v.fieldS == null ? null : GenericClass._dataToJson(_v.fieldS); } } return null; } } GenericClassWithConverter _$GenericClassWithConverterFromJson( Map json) { return GenericClassWithConverter() ..fieldObject = json['fieldObject'] ..fieldDynamic = json['fieldDynamic'] ..fieldInt = json['fieldInt'] as int ..fieldT = json['fieldT'] == null ? null : _SimpleConverter().fromJson(json['fieldT'] as Map) ..fieldS = json['fieldS'] == null ? null : _SimpleConverter().fromJson(json['fieldS'] as Map) ..duration = json['duration'] == null ? null : const _DurationMillisecondConverter() .fromJson(json['duration'] as int) ..listDuration = json['listDuration'] == null ? null : const _DurationListMillisecondConverter() .fromJson(json['listDuration'] as int); } Map _$GenericClassWithConverterToJson( GenericClassWithConverter instance) => _$GenericClassWithConverterJsonMapWrapper(instance); class _$GenericClassWithConverterJsonMapWrapper extends $JsonMapWrapper { final GenericClassWithConverter _v; _$GenericClassWithConverterJsonMapWrapper(this._v); @override Iterable get keys => const [ 'fieldObject', 'fieldDynamic', 'fieldInt', 'fieldT', 'fieldS', 'duration', 'listDuration' ]; @override dynamic operator [](Object key) { if (key is String) { switch (key) { case 'fieldObject': return _v.fieldObject; case 'fieldDynamic': return _v.fieldDynamic; case 'fieldInt': return _v.fieldInt; case 'fieldT': return _v.fieldT == null ? null : _SimpleConverter().toJson(_v.fieldT); case 'fieldS': return _v.fieldS == null ? null : _SimpleConverter().toJson(_v.fieldS); case 'duration': return _v.duration == null ? null : const _DurationMillisecondConverter().toJson(_v.duration); case 'listDuration': return _v.listDuration == null ? null : const _DurationListMillisecondConverter() .toJson(_v.listDuration); } } return null; } }