http_rest_converter library

Classes

JsonToMapResponseConverter
JsonToMapResponseConverter converts the received body bytes from RowResponse.bodyBytes to Map representation of JSON result.class, it uses the JsonCodec from dart.convert library to decode the json result.
MapToJsonRequestConverter
MapToJsonRequestConverter, which converts the body Map provided by HttpRestRequest.body to JSON String, it uses the JsonCodec from dart.convert library to encode the provided HttpRestRequest.body to JSON string.
RequestConverter
This class is a base request converter definition, derive from this class and implement the toRow method, which responsibility is to convert the HttpRestRequest to RowResponse. The library ships with pre defined request converters such as MapToJsonRequestConverter, which converts the body Map provided by HttpRestRequest.body to JSON String.
ResponseConverter
This class is a base response converter definition, derive from this class and implement the fromRow method, which responsibility is to convert the RowResponse to HttpRestResponse. The library ships with pre defined response converters such as JsonToMapResponseConverter, which converts the received body bytes from RowResponse.bodyBytes to Map representation of JSON result.
StringResponseConverter
This response converter converts the response RowResponse.bodyBytes to utf8 encoded string.