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

Dart native js
Flutter Android iOS Linux macOS web Windows

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.

1
likes
100
pub points
12%
popularity

A small package that adds json_serializable support to dartz-monads

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

github@fabi.online

License

MIT (LICENSE)

Dependencies

dartz, json_annotation

More

Packages that depend on dartz_serializable