|
|
|
@ -9,25 +9,25 @@ part of 'serializable_complex_object.dart';
|
|
|
|
|
SerializableComplexObject _$SerializableComplexObjectFromJson(
|
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
|
return SerializableComplexObject(
|
|
|
|
|
aString: json['aString'] as String,
|
|
|
|
|
anInt: json['anInt'] as int,
|
|
|
|
|
aDouble: (json['aDouble'] as num)?.toDouble(),
|
|
|
|
|
anObject: json['anObject'] == null
|
|
|
|
|
? null
|
|
|
|
|
: SerializableSimpleObject.fromJson(
|
|
|
|
|
json['anObject'] as Map<String, dynamic>),
|
|
|
|
|
aListOfStrings:
|
|
|
|
|
(json['aListOfStrings'] as List)?.map((e) => e as String)?.toList(),
|
|
|
|
|
aListOfInts:
|
|
|
|
|
(json['aListOfInts'] as List)?.map((e) => e as int)?.toList(),
|
|
|
|
|
aListOfDoubles: (json['aListOfDoubles'] as List)
|
|
|
|
|
?.map((e) => (e as num)?.toDouble())
|
|
|
|
|
?.toList(),
|
|
|
|
|
aListOfObjects: (json['aListOfObjects'] as List)
|
|
|
|
|
?.map((e) => e == null
|
|
|
|
|
? null
|
|
|
|
|
: SerializableSimpleObject.fromJson(e as Map<String, dynamic>))
|
|
|
|
|
?.toList());
|
|
|
|
|
aString: json['aString'] as String,
|
|
|
|
|
anInt: json['anInt'] as int,
|
|
|
|
|
aDouble: (json['aDouble'] as num)?.toDouble(),
|
|
|
|
|
anObject: json['anObject'] == null
|
|
|
|
|
? null
|
|
|
|
|
: SerializableSimpleObject.fromJson(
|
|
|
|
|
json['anObject'] as Map<String, dynamic>),
|
|
|
|
|
aListOfStrings:
|
|
|
|
|
(json['aListOfStrings'] as List)?.map((e) => e as String)?.toList(),
|
|
|
|
|
aListOfInts: (json['aListOfInts'] as List)?.map((e) => e as int)?.toList(),
|
|
|
|
|
aListOfDoubles: (json['aListOfDoubles'] as List)
|
|
|
|
|
?.map((e) => (e as num)?.toDouble())
|
|
|
|
|
?.toList(),
|
|
|
|
|
aListOfObjects: (json['aListOfObjects'] as List)
|
|
|
|
|
?.map((e) => e == null
|
|
|
|
|
? null
|
|
|
|
|
: SerializableSimpleObject.fromJson(e as Map<String, dynamic>))
|
|
|
|
|
?.toList(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$SerializableComplexObjectToJson(
|
|
|
|
@ -40,5 +40,5 @@ Map<String, dynamic> _$SerializableComplexObjectToJson(
|
|
|
|
|
'aListOfStrings': instance.aListOfStrings,
|
|
|
|
|
'aListOfInts': instance.aListOfInts,
|
|
|
|
|
'aListOfDoubles': instance.aListOfDoubles,
|
|
|
|
|
'aListOfObjects': instance.aListOfObjects
|
|
|
|
|
'aListOfObjects': instance.aListOfObjects,
|
|
|
|
|
};
|
|
|
|
|