Converter for the chopper
library using JsonSerializable
models.
Features
- Full test coverage
- Easily integrates into chopper
- Supports generic responses
Usage
final client = ChopperClient(
services: [
_$ApiService(),
],
converter: JsonSerializableConverter({
PostResource: PostResource.fromJson,
}),
);
Other packages
If you need ready-made JsonSerializable
converters for other common types, take a look at these packages: