StatusCause class
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
Constructors
- StatusCause({String? field, String? message, String? reason})
-
Default constructor.
const
-
StatusCause.fromJson(Map<
String, dynamic> json) -
Creates a StatusCause from JSON data.
factory
Properties
- field → String?
-
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
A human-readable description of the cause of the error. This field may be presented as-is to a reader.
final
- reason → String?
-
A machine-readable description of the cause of the error. If this value is empty there is no information available.
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
-
toJson(
) → Map< String, Object> - Converts a StatusCause instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited