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:
committed by
Filip Hracek
parent
c02d0208fa
commit
9d5686ae13
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user