fromHttpResponse static method
Convert the HTTP response into the AuthRevokeResponse
Implementation
static AuthRevokeResponse fromHttpResponse(
int statusCode,
String responseBody,
) {
if (statusCode == 200) {
return AuthRevokeResponse();
} else {
final body = jsonDecode(responseBody);
return AuthRevokeResponse(
message: body['message'], status: body['status']);
}
}