xesja_json_model

{
  "@Def(name)": "\"\"",
  "name": "",
  "@Def(age)": 21,
  "age": 21,
  "@Def(friends)": [],
  "friends":["小米","小爱","小度"],
  "time": "2020-07-09 15:32:01",
  "hello_word": ""
}
  String name = "";

  num age = 21;
  
  List friends = [];
  
  DateTime time;
  
  @JsonKey(name: "hello_word")
  String helloWord;
flutter packages pub run xesja_json_model
  json_serializable: ^2.2.0
  xesja_json_model : ^0.0.3

Libraries

xesja_json_model