dartz_serializable 0.2.0-nullable.1 copy "dartz_serializable: ^0.2.0-nullable.1" to clipboard
dartz_serializable: ^0.2.0-nullable.1 copied to clipboard

A small package that adds json_serializable support to dartz-monads

dartz_serializable #

This small package is providing json_serializable-support for dartz-monads.

At the moment, only Option<> and Either<,> are supported. If you wish support for other monads, open an issue or feel free to contribute.

Usage #

Since annotations aren't supporting generics, you have to bind the parameters at compile time:

class StringOptionConverter extends OptionConverter<String> {
  const StringOptionConverter();
}

Then you can use the converter as usual:

@StringOptionConverter()
final Option<String> option;

Also take a look at the example.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

3
likes
130
pub points
25%
popularity

Publisher

unverified uploader

A small package that adds json_serializable support to dartz-monads

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dartz, json_annotation

More

Packages that depend on dartz_serializable