|
|
|
|
@ -1,7 +1,3 @@
|
|
|
|
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
|
|
part of 'serializable_complex_object.dart';
|
|
|
|
|
@ -11,14 +7,14 @@ part of 'serializable_complex_object.dart';
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
|
|
SerializableComplexObject _$SerializableComplexObjectFromJson(
|
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
|
new SerializableComplexObject(
|
|
|
|
|
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
|
|
|
|
|
: new SerializableSimpleObject.fromJson(
|
|
|
|
|
: SerializableSimpleObject.fromJson(
|
|
|
|
|
json['anObject'] as Map<String, dynamic>),
|
|
|
|
|
aListOfStrings:
|
|
|
|
|
(json['aListOfStrings'] as List)?.map((e) => e as String)?.toList(),
|
|
|
|
|
@ -30,27 +26,19 @@ SerializableComplexObject _$SerializableComplexObjectFromJson(
|
|
|
|
|
aListOfObjects: (json['aListOfObjects'] as List)
|
|
|
|
|
?.map((e) => e == null
|
|
|
|
|
? null
|
|
|
|
|
: new SerializableSimpleObject.fromJson(
|
|
|
|
|
e as Map<String, dynamic>))
|
|
|
|
|
: SerializableSimpleObject.fromJson(e as Map<String, dynamic>))
|
|
|
|
|
?.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _$SerializableComplexObjectSerializerMixin {
|
|
|
|
|
String get aString;
|
|
|
|
|
int get anInt;
|
|
|
|
|
double get aDouble;
|
|
|
|
|
SerializableSimpleObject get anObject;
|
|
|
|
|
List<String> get aListOfStrings;
|
|
|
|
|
List<int> get aListOfInts;
|
|
|
|
|
List<double> get aListOfDoubles;
|
|
|
|
|
List<SerializableSimpleObject> get aListOfObjects;
|
|
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{
|
|
|
|
|
'aString': aString,
|
|
|
|
|
'anInt': anInt,
|
|
|
|
|
'aDouble': aDouble,
|
|
|
|
|
'anObject': anObject,
|
|
|
|
|
'aListOfStrings': aListOfStrings,
|
|
|
|
|
'aListOfInts': aListOfInts,
|
|
|
|
|
'aListOfDoubles': aListOfDoubles,
|
|
|
|
|
'aListOfObjects': aListOfObjects
|
|
|
|
|
Map<String, dynamic> _$SerializableComplexObjectToJson(
|
|
|
|
|
SerializableComplexObject instance) =>
|
|
|
|
|
<String, dynamic>{
|
|
|
|
|
'aString': instance.aString,
|
|
|
|
|
'anInt': instance.anInt,
|
|
|
|
|
'aDouble': instance.aDouble,
|
|
|
|
|
'anObject': instance.anObject,
|
|
|
|
|
'aListOfStrings': instance.aListOfStrings,
|
|
|
|
|
'aListOfInts': instance.aListOfInts,
|
|
|
|
|
'aListOfDoubles': instance.aListOfDoubles,
|
|
|
|
|
'aListOfObjects': instance.aListOfObjects
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|