// 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. class ConvertedSimpleObject { const ConvertedSimpleObject({ this.aString, this.anInt, this.aDouble, this.aListOfStrings, this.aListOfInts, this.aListOfDoubles, }); final String? aString; final int? anInt; final double? aDouble; final List? aListOfStrings; final List? aListOfInts; final List? aListOfDoubles; factory ConvertedSimpleObject.fromJson(Map json) { return ConvertedSimpleObject( aString: json['aString'] as String?, anInt: json['anInt'] as int?, aDouble: json['aDouble'] as double?, aListOfStrings: json['aListOfStrings'] != null ? List.from(json['aListOfStrings'] as Iterable) : null, aListOfInts: json['aListOfInts'] != null ? List.from(json['aListOfInts'] as Iterable) : null, aListOfDoubles: json['aListOfDoubles'] != null ? List.from(json['aListOfDoubles'] as Iterable) : null, ); } }