fromHttpResponse static method
Convert the HTTP response into a OpenApiGetBadgeResponse instance
Implementation
static OpenApiGetBadgeResponse fromHttpResponse(Response response) {
final json = jsonDecode(response.body);
if (json != null) {
return OpenApiGetBadgeResponse.fromJson(json);
} else {
return OpenApiGetBadgeResponse(
status: response.statusCode,
message: '',
);
}
}