// 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'; // ************************************************************************** // Generator: JsonSerializableGenerator // ************************************************************************** SerializableComplexObject _$SerializableComplexObjectFromJson( Map json) => new 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( json['anObject'] as Map), 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 : new SerializableSimpleObject.fromJson( e as Map)) ?.toList()); abstract class _$SerializableComplexObjectSerializerMixin { String get aString; int get anInt; double get aDouble; SerializableSimpleObject get anObject; List get aListOfStrings; List get aListOfInts; List get aListOfDoubles; List get aListOfObjects; Map toJson() => { 'aString': aString, 'anInt': anInt, 'aDouble': aDouble, 'anObject': anObject, 'aListOfStrings': aListOfStrings, 'aListOfInts': aListOfInts, 'aListOfDoubles': aListOfDoubles, 'aListOfObjects': aListOfObjects }; }