platform/packages/serialize/serialize_generator
2024-10-12 18:45:27 -07:00
..
example Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
lib Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
test Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
.gitignore Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
analysis_options.yaml Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
AUTHORS.md Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
build.yaml Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
CHANGELOG.md Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
LICENSE Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
pubspec.yaml Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00
README.md Refactor: changing namespace, imports, re-branding 2024-10-12 18:45:27 -07:00

Protevus Serialize Generator

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

The builder for Protevus serialization.

Usage

  1. Create a model class in todo.dart and annotate it with @serializable

        import 'package:protevus_serialize/protevus_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