fromHttpResponse static method

OpenApiChannelInformationResponse fromHttpResponse(
  1. Response response
)

Convert the HTTP response into a OpenApiChannelInformationResponse instance

Implementation

static OpenApiChannelInformationResponse fromHttpResponse(Response response) {
  final json = jsonDecode(response.body);

  if (json != null) {
    return OpenApiChannelInformationResponse.fromJson(json);
  } else {
    return OpenApiChannelInformationResponse(
      status: response.statusCode,
      message: '',
    );
  }
}