PaymentTransaction.fromJson constructor
Implementation
factory PaymentTransaction.fromJson(Map<String, dynamic> parsedJson) {
dynamic paymentMethodJson = parsedJson['paymentMethod'];
return PaymentTransaction(
parsedJson['id'],
parsedJson['date'],
parsedJson['status'],
parsedJson['customFields'],
parsedJson['customFormAnswers'],
PaymentMethod.fromJson(paymentMethodJson),
parsedJson['billingData'],
);
}