ApiErrorResponse class
A model class to represent API error responses.
Constructors
- ApiErrorResponse({String? message, int? statusCode, String? status, String? data, String? validation})
- Constructor to initialize the API error response object.
-
ApiErrorResponse.fromJson(Map<
String, dynamic> json, int statusCode) - Factory constructor to parse JSON data and create an ApiErrorResponse object.
Properties
- data ↔ String?
-
Additional data returned in the API response, if any.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String?
-
The error message or concatenated error messages if multiple errors exist.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
The status string indicating the API request result.
getter/setter pair
- statusCode ↔ int?
-
The HTTP status code returned by the API.
getter/setter pair
- validation ↔ String?
-
Validation-specific information returned in the API response, if any.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited