AuthyoResponseModel class
Represents the base response model returned from Authyo API calls.
Includes success status, message, error information, and nested data.
Constructors
- AuthyoResponseModel({bool? success, String? message, Data? data, String? status, String? error, String? errorCode})
-
AuthyoResponseModel.fromJson(Map<
String, dynamic> json) - Creates a AuthyoResponseModel model from json.
-
AuthyoResponseModel.withError(Map<
String, dynamic> json) - Creates a response model from an error response.
Properties
- data ↔ Data?
-
getter/setter pair
- error ↔ String?
-
getter/setter pair
- errorCode ↔ String?
-
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
- status ↔ String?
-
getter/setter pair
- success ↔ bool?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a json model from AuthyoResponseModel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited