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
@@ -8,8 +8,7 @@ import 'package:jsonexample/json_serializable/serializable_simple_object.dart';
|
||||
part 'serializable_complex_object.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class SerializableComplexObject extends Object
|
||||
with _$SerializableComplexObjectSerializerMixin {
|
||||
class SerializableComplexObject {
|
||||
SerializableComplexObject({
|
||||
this.aString,
|
||||
this.anInt,
|
||||
@@ -32,4 +31,6 @@ class SerializableComplexObject extends Object
|
||||
|
||||
factory SerializableComplexObject.fromJson(Map<String, dynamic> json) =>
|
||||
_$SerializableComplexObjectFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$SerializableComplexObjectToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user