PaymentResult.fromJson constructor
Implementation
factory PaymentResult.fromJson(Map<String, dynamic> parsedJson) {
dynamic intentJson = parsedJson['intent'];
dynamic transactionJson = parsedJson['transaction'];
return PaymentResult(
PaymentIntent.fromJson(intentJson),
PaymentTransaction.fromJson(transactionJson),
);
}