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, int? attemptsRemaining, int? maxVerifyAttempts, int? retryAfterSeconds})
AuthyoResponseModel.fromJson(Map<String, dynamic> json)
Creates a AuthyoResponseModel model from json.
AuthyoResponseModel.withError(Map<String, dynamic> json, {AuthyoResponseModel? from})
Creates a response model from an error response. from carries the server reply's attempt / retry counters over to the error model.

Properties

attemptsRemaining int?
Wrong-OTP attempts left before the server locks the OTP session, and the ceiling it counts down from. Sent with every failed verify.
getter/setter pair
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
maxVerifyAttempts int?
getter/setter pair
message String?
getter/setter pair
retryAfterSeconds int?
Seconds until a locked-out session (or throttled send) may be retried.
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