PaymentTransaction.fromJson constructor

PaymentTransaction.fromJson(
  1. Map<String, dynamic> parsedJson
)

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'],
  );
}