flutter_graphql_client/rest_response library

Functions

decodeRestBody(String raw) → Map<String, dynamic>
A JSON list is exposed under results.
decodeRestResponse(Response response) → Map<String, dynamic>
The body of a 2xx response; throws a RestApiException otherwise.
parsePermissionDenial(Map<String, dynamic> body) → ({String? message, String? permission})
The denial is the body itself or nested under detail.