tryGetResponse method

Response? tryGetResponse()

Implementation

Response? tryGetResponse() {
  return switch (this) {
    BaseApiBadResponseException(
      :final response,
    ) =>
      response,
    _ => null
  };
}