1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +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:
Andrew Brogdon
2018-08-31 09:29:04 -07:00
committed by Filip Hracek
parent c02d0208fa
commit 9d5686ae13
12 changed files with 157 additions and 117 deletions

View File

@@ -9,8 +9,7 @@ part 'serializable_simple_object.g.dart';
/// An annotation for the code generator to know that this class needs the
/// JSON serialization logic to be generated.
@JsonSerializable()
class SerializableSimpleObject extends Object
with _$SerializableSimpleObjectSerializerMixin {
class SerializableSimpleObject {
SerializableSimpleObject({
this.aString,
this.anInt,
@@ -29,4 +28,6 @@ class SerializableSimpleObject extends Object
factory SerializableSimpleObject.fromJson(Map<String, dynamic> json) =>
_$SerializableSimpleObjectFromJson(json);
Map<String, dynamic> toJson() => _$SerializableSimpleObjectToJson(this);
}