mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Fixes the dependencies for the examples, unbreaks Travis. (#11)
* Updated jsonexample for new dep versions. * Fixes for other examples.
This commit is contained in:
committed by
Filip Hracek
parent
c02d0208fa
commit
9d5686ae13
@@ -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_simple_object.dart';
|
||||
@@ -11,32 +7,27 @@ part of 'serializable_simple_object.dart';
|
||||
// **************************************************************************
|
||||
|
||||
SerializableSimpleObject _$SerializableSimpleObjectFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
new SerializableSimpleObject(
|
||||
aString: json['aString'] as String,
|
||||
anInt: json['anInt'] as int,
|
||||
aDouble: (json['aDouble'] as num)?.toDouble(),
|
||||
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());
|
||||
|
||||
abstract class _$SerializableSimpleObjectSerializerMixin {
|
||||
String get aString;
|
||||
int get anInt;
|
||||
double get aDouble;
|
||||
List<String> get aListOfStrings;
|
||||
List<int> get aListOfInts;
|
||||
List<double> get aListOfDoubles;
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
'aString': aString,
|
||||
'anInt': anInt,
|
||||
'aDouble': aDouble,
|
||||
'aListOfStrings': aListOfStrings,
|
||||
'aListOfInts': aListOfInts,
|
||||
'aListOfDoubles': aListOfDoubles
|
||||
};
|
||||
Map<String, dynamic> json) {
|
||||
return SerializableSimpleObject(
|
||||
aString: json['aString'] as String,
|
||||
anInt: json['anInt'] as int,
|
||||
aDouble: (json['aDouble'] as num)?.toDouble(),
|
||||
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());
|
||||
}
|
||||
|
||||
Map<String, dynamic> _$SerializableSimpleObjectToJson(
|
||||
SerializableSimpleObject instance) =>
|
||||
<String, dynamic>{
|
||||
'aString': instance.aString,
|
||||
'anInt': instance.anInt,
|
||||
'aDouble': instance.aDouble,
|
||||
'aListOfStrings': instance.aListOfStrings,
|
||||
'aListOfInts': instance.aListOfInts,
|
||||
'aListOfDoubles': instance.aListOfDoubles
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user