DigitalWalletResponse class
Response model for digital wallet payment operations.
This class represents the response received from digital wallet payment API calls, containing status information and optional messages about the transaction outcome.
Properties
- message - Optional descriptive message about the operation
- status - Optional status code or description
Usage
final response = DigitalWalletResponse(
message: 'Payment successful',
status: 'completed',
);
// From JSON
final responseFromJson = DigitalWalletResponse.fromJson({
'message': 'Transaction approved',
'status': 'success'
});
Constructors
- DigitalWalletResponse.new({String? message, String? status})
- Creates a new instance of DigitalWalletResponse.
-
DigitalWalletResponse.fromJson(Map<
String, dynamic> json) -
Creates a DigitalWalletResponse instance from a JSON map.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this DigitalWalletResponse instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited