angel3_serialize_generator 8.3.1 angel3_serialize_generator: ^8.3.1 copied to clipboard
Angel3 model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling.
Angel3 Serialize Generator #
The builder for Angel3 serialization.
Usage #
-
Create a model class in
todo.dart
and annotate it with@serializable
import 'package:angel3_serialize/angel3_serialize.dart'; part 'todo.g.dart'; @serializable class _Todo { String? text; bool? completed; }
-
Run the following command to generate the associated
todo.g.dart
file for serialization.dart run build_runner build