platform/packages/serialize/angel_serialize_generator
2024-05-22 00:26:09 +08:00
..
example Updated serialize generator 2023-04-21 14:25:54 +08:00
lib Updated to lints 3.0.0 2023-12-24 11:27:17 +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 repository links 2023-12-25 11:45:10 +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 lints 2024-05-22 00:26:09 +08:00
README.md Updated repository links 2023-12-25 11:45:10 +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