Angel3 Serialize Generator
The builder for generating JSON serialization code for Angel3 framework.
Usage
-
Create a model class in
todo.dartand annotate it with@serializableand appendEntitysuffix to the class name.import 'package:angel3_serialize/angel3_serialize.dart'; part 'todo.g.dart'; @serializable class TodoEntity { String? text; bool? completed; } -
Run the following command to generate the associated
todo.g.dartfile for serialization.dart run build_runner build