TrueclientResponse class

Represents the response received from the TrueClient API.

This class encapsulates the status, message, and optional data returned by the API in response to requests such as OTP requests.

Constructors

TrueclientResponse.new({required String message, required bool success, Map<String, dynamic>? data})
Creates an instance of TrueclientResponse.

Properties

data Map<String, dynamic>?
Contains additional data returned by the API.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String
Provides a descriptive message about the result of the API request.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Indicates the success or failure of the API request.
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