DefaultErrorResponse class
A concrete implementation of ErrorResponse.
- Implemented types
Constructors
- DefaultErrorResponse({required int status, required String error, required String message})
- Constructor for DefaultErrorResponse.
-
DefaultErrorResponse.fromJson(Map<
String, dynamic> json) -
Factory constructor to create an instance from a JSON object.
factory
Properties
- error → String
-
A short error code or summary.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A detailed human-readable error message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
The HTTP status code of the error response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the error response into a JSON object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited