serialize_enum 0.1.1 copy "serialize_enum: ^0.1.1" to clipboard
serialize_enum: ^0.1.1 copied to clipboard

Json serialization for Dart enumerations without source code generation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add serialize_enum

With Flutter:

 $ flutter pub add serialize_enum

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  serialize_enum: ^0.1.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:serialize_enum/serialize_enum.dart';
0
likes
160
pub points
19%
popularity

Publisher

verified publishersimphotonics.com

Json serialization for Dart enumerations without source code generation.

Repository (GitHub)
View/report issues

Topics

#enum #json #serialization #persist

Documentation

API reference

License

MIT (license)

Dependencies

exception_templates, lazy_memo

More

Packages that depend on serialize_enum