ErrorSource class

Constructors

ErrorSource({String? pointer, String? parameter})
Returns a new ErrorSource instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
parameter ↔ String?
A string indicating which URI query parameter caused the error. This may or may not be included in the error payload, depending on the type of error.
getter/setter pair
pointer ↔ String?
A pointer to the problem data, e.g. "/data" for the primary data, "/data/attributes/email" for a specific attribute, or "/data/relationships/user" for a problem with a relationship. This may or may not be included in the error payload, depending on the type of error.
getter/setter pair
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → ErrorSource?
Returns a new ErrorSource instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ErrorSource>
mapFromJson(dynamic json) → Map<String, ErrorSource>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ErrorSource>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.