1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 06:56:10 +00:00

Serialization auto

This commit is contained in:
Yan Maniez 2020-09-28 18:01:38 +02:00
parent 5ec93124ec
commit bd650ae609
7 changed files with 1261 additions and 71 deletions

View file

@ -0,0 +1,16 @@
import 'package:json_annotation/json_annotation.dart';
part 'test.g.dart';
@JsonSerializable(explicitToJson: true)
class Test {
String id;
String rootId;
String parentLink;
String name;
Test();
factory Test.fromJson(Map<String, dynamic> map) => _$TestFromJson(map);
Map<String, dynamic> toJson() => _$TestToJson(this);
}