InvalidJsonException class

Represents exceptions that occur when the JSON received from an API is invalid.

The exception stores additional information about the invalid JSON, such as the associated id, the path where the API call was made, the api which returned the invalid JSON, and the data containing the problematic JSON.

Implemented types

Constructors

InvalidJsonException({required String id, required String path, required String api, required Map<String, dynamic> data})
const

Properties

api String
final
data Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited