ApiException.fromApiError constructor

ApiException.fromApiError(
  1. int statusCode,
  2. ApiError? apiError
)

Implementation

ApiException.fromApiError(this.statusCode, this.apiError)
    : error = apiError!.name,
      errorDescription = apiError.message;