mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Add analysis_options, format and fix up (#104)
This commit is contained in:
@@ -23,17 +23,17 @@ class ConvertedSimpleObject {
|
||||
if (json == null) return null;
|
||||
|
||||
return ConvertedSimpleObject(
|
||||
aString: json['aString'],
|
||||
anInt: json['anInt'],
|
||||
aDouble: json['aDouble'],
|
||||
aString: json['aString'] as String,
|
||||
anInt: json['anInt'] as int,
|
||||
aDouble: json['aDouble'] as double,
|
||||
aListOfStrings: json['aListOfStrings'] != null
|
||||
? List<String>.from(json['aListOfStrings'])
|
||||
? List<String>.from(json['aListOfStrings'] as Iterable<dynamic>)
|
||||
: null,
|
||||
aListOfInts: json['aListOfInts'] != null
|
||||
? List<int>.from(json['aListOfInts'])
|
||||
? List<int>.from(json['aListOfInts'] as Iterable<dynamic>)
|
||||
: null,
|
||||
aListOfDoubles: json['aListOfDoubles'] != null
|
||||
? List<double>.from(json['aListOfDoubles'])
|
||||
? List<double>.from(json['aListOfDoubles'] as Iterable<dynamic>)
|
||||
: null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user