Failure class
Class Failure : Return failure message, if there is any error in api call or during the time of parsing
Constructors
- Failure({int? statusCode = 100, String? message = "", dynamic response, ErrorModel? error, String? timestamp})
-
Failure.fromJson(Map<
String, dynamic> json)
Properties
- data ↔ dynamic
-
getter/setter pair
- error ↔ ErrorModel?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode ↔ int?
-
getter/setter pair
- timestamp ↔ String?
-
getter/setter pair
Methods
-
copyWith(
{int? statusCode, String? message, dynamic response, ErrorModel? data, String? timestamp}) → Failure -
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