TransactionData.fromJson constructor
TransactionData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TransactionData.fromJson(Map<String, dynamic> json) {
return TransactionData(
billingData: json['billing_data'] ?? json['billingData'],
amount: json['amount']?.toDouble(),
externalActionMessage: List<String>.from(json['external_action_message'] ?? json["externalActionMessage"] ?? []),
amountCurrency: json['amount_currency'] ?? json['amountCurrency'],
id: json['id'],
methodName: json['method_name'] ?? json['methodName'],
method: json['method'],
createdDate: json['created_date'] ?? json['createdDate'],
status: json['status'],
customFields: json['custom_fields'] ?? json['customFields'],
providerTransactionFields: json['provider_transaction_fields'] ?? json['providerTransactionFields'],
customFormAnswers: json['custom_form_answers'] ?? json['customFormAnswers'],
);
}