Error class
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
Error({required int code, required String message, Map<String, dynamic>? data})
-
A constructor for creating a new class instance.
-
Error.fromJson(Map<String, dynamic> json)
-
This factory function connects to the generator function
to create the class.
factory
Properties
-
code
↔ int
-
A Number that indicates the error type that occurred.
getter/setter pair
-
data
↔ Map<String, dynamic>?
-
Value that contains additional information about the error.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
message
↔ String
-
A String providing a short description of the 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>
-
This function converts a generated class object back to
a JSON HashMap.
-
toString()
→ String
-
A string representation of this object.
inherited