PaymentRequestModel.fromJson constructor

PaymentRequestModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

PaymentRequestModel.fromJson(Map<String, dynamic> json) {
  cardId = json['cardId'];
  paymentMethodId = json['paymentMethodId'];
  tokenId = json['tokenId'];
  amount = json['amount'];
  currency = json['currency'];
  qrCode = json['qrCode'];
  commissionId = json['commissionId'];
  deliveryLocationId = json['deliveryLocationId'];
  proUniqueId = json['proUniqueId'];
  shopUniqueId = json['shopUniqueId'] ?? 0;
}