StreamApiException constructor

StreamApiException(
  1. String? body,
  2. int? status
)

Creates a new ApiError instance using the response body and status code

Implementation

StreamApiException(this.body, this.status) : jsonData = _decode(body) {
  if (jsonData != null && jsonData!.containsKey('code')) {
    _code = jsonData!['code'];
  }
}