DigitalWalletResponse.fromJson constructor
Creates a DigitalWalletResponse instance from a JSON map.
This factory constructor is used to deserialize API responses into DigitalWalletResponse objects.
Parameters
json
- Map containing the response data
Returns
A new DigitalWalletResponse instance with data from the JSON map.
Implementation
factory DigitalWalletResponse.fromJson(Map<String, dynamic> json) {
return DigitalWalletResponse(
message: json['message'] as String?,
status: json['status'] as String?,
);
}