PaymentDetailsDto.fromJson constructor
PaymentDetailsDto.fromJson(- Map<String, dynamic> json
)
Implementation
factory PaymentDetailsDto.fromJson(Map<String, dynamic> json) {
switch (decodePaymentType(PaymentTypeEnumMap, json["type"] as String)) {
case PaymentType.girocard:
return GirocardPaymentDetailsDto.fromJson(json);
case PaymentType.elv:
return ElvPaymentDetailsDto.fromJson(json);
case PaymentType.visaElectron:
return VisaElectronPaymentDetailsDto.fromJson(json);
case PaymentType.maestro:
return MaestroPaymentDetailsDto.fromJson(json);
case PaymentType.bankTransfer:
return BankTransferPaymentDetailsDto.fromJson(json);
case PaymentType.cash:
return CashPaymentDetailsDto.fromJson(json);
case PaymentType.check:
return CheckPaymentDetailsDto.fromJson(json);
case PaymentType.creditCard:
return CardPaymentDetailsDto.fromJson(json);
case PaymentType.directDebit:
return DirectDebitPaymentDetailsDto.fromJson(json);
case PaymentType.giftCard:
return GiftCardPaymentDetailsDto.fromJson(json);
case PaymentType.loyaltyCard:
return LoyaltyCardPaymentDetailsDto.fromJson(json);
case PaymentType.onlinePayment:
return OnlinePaymentDetailsDto.fromJson(json);
case PaymentType.miscellaneous:
return MiscellaneousPaymentDetailsDto.fromJson(json);
case PaymentType.cardPayment:
return CardPaymentDetailsDto.fromJson(json);
}
}