IntentDetails.fromJson constructor
IntentDetails.fromJson(
- Map<String, dynamic> jsonMap
)
Implementation
factory IntentDetails.fromJson(Map<String, dynamic> jsonMap) {
return IntentDetails(
selectedMethod: jsonMap['selected_method'] ?? jsonMap['selectedMethod'],
intent: jsonMap['intent'] != null ? IntentData.fromJson(jsonMap['intent']) : null,
walletBalance: (jsonMap['walletBalance'] ?? jsonMap["wallet"])?.toDouble(),
transaction: jsonMap['transaction'] != null ? TransactionData.fromJson(jsonMap['transaction']) : null,
redirect: jsonMap['redirect'] != null ? RedirectData.fromJson(jsonMap['redirect']) : null,
state: jsonMap['state'] != null ? StateExtension.fromJson(jsonMap['state']) : null,
);
}