json_serializable_chopper_converter 1.0.0

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

Converter for Chopper to transform responses into JSON Serializable objects.

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: