platform/packages/serialize/angel_serialize_generator
thomashii@dukefirehawk.com 630c527381 Upgrade library
2023-09-23 11:31:46 +08:00
..
example Updated serialize generator 2023-04-21 14:25:54 +08:00
lib Fixed duplicated fields 2023-06-25 09:46:06 +08:00
test Fixed duplicated fields 2023-06-25 09:46:06 +08:00
.gitignore Update authors and licence 2021-05-15 21:37:00 +08:00
analysis_options.yaml Updated serialize_generator 2021-09-11 14:37:53 +08:00
AUTHORS.md Updated serialise 2022-02-27 12:16:31 +08:00
build.yaml Updated serialize_generator 2021-09-11 14:37:53 +08:00
CHANGELOG.md Upgrade library 2023-09-23 11:31:46 +08:00
LICENSE Updated serialize_generator 2021-09-11 14:37:53 +08:00
melos_angel3_serialize_generator.iml Added melos 2022-03-19 09:37:28 +08:00
pubspec.yaml Upgrade library 2023-09-23 11:31:46 +08:00
README.md Upgrade library 2023-09-23 11:31:46 +08:00

Angel3 Serialize Generator

Pub Version (including pre-releases) Null Safety Gitter License

The builder for Angel3 serialization.

Usage

  1. 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;
        }
    
  2. Run the following command to generate the associated todo.g.dart file for serialization.

        dart run build_runner build