platform/packages/serialize/angel_serialize_generator
2024-07-07 23:02:49 +08:00
..
example Updated serialize generator 2023-04-21 14:25:54 +08:00
lib Updated deprecated code 2024-06-16 10:13:53 +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 Updated serializer_generator 2024-06-23 14:47:15 +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 Updated serializer_generator 2024-06-23 14:47:15 +08:00
README.md Replaced Gitter with Discord chat 2024-07-07 23:02:49 +08:00

Angel3 Serialize Generator

Pub Version (including pre-releases) Null Safety Discord 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