ApiResultBody.json constructor
const
ApiResultBody.json(
- Object data
Container for a response body that came with the "application/json"
content type. For detail endpoints, data is expected to either be a Map
or a List of Maps, of length 1. For list endpoints, data is expected to
either be a List of Maps, or a Map with a single key which points to a
List of Maps. This special key should be specified by the
ApiSource.resultsKey value.
Implementation
const factory ApiResultBody.json(Object data) = JsonApiResultBody;