dartrofit_converter_json 1.0.0

Dart native
Flutter Android iOS

The Json support for dartrofit.

Dartrofit_converter_json for dartrofit #

The Json support for dartrofit

First, depend on it

    dartrofit_converter_json: latest version

Then, add it to Dartrofit configuration

final dartrofit = Dartrofit(Uri.parse(''))

Usage #

All types accepted by jsonEncode() in json can be annotated with @Body().

abstract class Api {

  factory Api(Dartrofit dartrofit) = _$Api;

  Future<Response<Map<String, dynamic>>> postBookNumber(@Body() Map<String, dynamic> body);