My2c2pSDK.fromMap constructor

My2c2pSDK.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory My2c2pSDK.fromMap(Map<String, dynamic> json) {
  final model = My2c2pSDK(privateKey: json["privateKey"] == null ? null : json["privateKey"]);
  model.a = json["a"] == null ? null : json["a"];
  model.accountNo = json["accountNo"] == null ? null : json["accountNo"];
  model.agentCode = json["agentCode"] == null ? null : json["agentCode"];
  model.allowAccumulate = json["allowAccumulate"] == null ? null : json["allowAccumulate"];
  model.amount = json["amount"] == null ? null : json["amount"];
  model.b = json["b"] == null ? null : json["b"];
  model.cardExpireMonth = json["cardExpireMonth"] == null ? null : json["cardExpireMonth"];
  model.cardExpireYear = json["cardExpireYear"] == null ? null : json["cardExpireYear"];
  model.cardHolderEmail = json["cardHolderEmail"] == null ? null : json["cardHolderEmail"];
  model.cardHolderName = json["cardHolderName"] == null ? null : json["cardHolderName"];
  model.cardPin = json["cardPin"] == null ? null : json["cardPin"];
  model.cardType = json["cardType"] == null ? null : json["cardType"];
  model.channelCode = json["channelCode"] == null ? null : json["channelCode"];
  model.chargeNextDate = json["chargeNextDate"] == null ? null : json["chargeNextDate"];
  model.chargeOnDate = json["chargeOnDate"] == null ? null : json["chargeOnDate"];
  model.currencyCode = json["currencyCode"] == null ? null : json["currencyCode"];
  model.desc = json["desc"] == null ? null : json["desc"];
  model.enableStoreCard = json["enableStoreCard"] == null ? null : json["enableStoreCard"];
  model.hashValue = json["hashValue"] == null ? null : json["hashValue"];
  model.inquiryHashValue = json["inquiryHashValue"] == null ? null : json["inquiryHashValue"];
  model.installmentPeriod = json["installmentPeriod"] == null ? null : json["installmentPeriod"];
  model.installmentPeriodFilter = json["installmentPeriodFilter"] == null ? null : json["installmentPeriodFilter"];
  model.installmentType = json["installmentType"] == null ? null : json["installmentType"];
  model.interestType = json["interestType"] == null ? null : json["interestType"];
  model.invoicePrefix = json["invoicePrefix"] == null ? null : json["invoicePrefix"];
  model.ippTransaction = json["ippTransaction"] == null ? null : json["ippTransaction"];
  model.maxAccumulateAmt = json["maxAccumulateAmt"] == null ? null : json["maxAccumulateAmt"];
  model.merchantId = json["merchantID"] == null ? null : json["merchantID"];
  model.mobileNo = json["mobileNo"] == null ? null : json["mobileNo"];
  model.pan = json["pan"] == null ? null : json["pan"];
  model.panBank = json["panBank"] == null ? null : json["panBank"];
  model.panCountry = json["panCountry"] == null ? null : json["panCountry"];
  model.payCategoryId = json["payCategoryID"] == null ? null : json["payCategoryID"];
  model.paymentChannel = json["paymentChannel"] == null ? null : json["paymentChannel"];
  model.paymentExpiry = json["paymentExpiry"] == null ? null : json["paymentExpiry"];
  model.paymentOption = json["paymentOption"] == null ? null : json["paymentOption"];
  model.paymentUI = json["paymentUI"] == null ? null : json["paymentUI"];
  model.privateKey = json["privateKey"] == null ? null : json["privateKey"];
  model.productCode = json["productCode"] == null ? null : json["productCode"];
  model.productionMode = json["productionMode"] == null ? null : json["productionMode"];
  model.promotion = json["promotion"] == null ? null : json["promotion"];
  model.recurring = json["recurring"] == null ? null : json["recurring"];
  model.recurringAmount = json["recurringAmount"] == null ? null : json["recurringAmount"];
  model.recurringCount = json["recurringCount"] == null ? null : json["recurringCount"];
  model.recurringInterval = json["recurringInterval"] == null ? null : json["recurringInterval"];
  model.request3DS = json["request3DS"] == null ? null : json["request3DS"];
  model.samsungPayMerchantName = json["samsungPayMerchantName"] == null ? null : json["samsungPayMerchantName"];
  model.samsungPayServiceId = json["samsungPayServiceId"] == null ? null : json["samsungPayServiceId"];
  model.secretKey = json["secretKey"] == null ? null : json["secretKey"];
  model.securityCode = json["securityCode"] == null ? null : json["securityCode"];
  model.statementDescriptor = json["statementDescriptor"] == null ? null : json["statementDescriptor"];
  model.storeCard = json["storeCard"] == null ? null : json["storeCard"];
  model.storedCardUniqueId = json["storedCardUniqueID"] == null ? null : json["storedCardUniqueID"];
  model.subMerchantId = json["subMerchantID"] == null ? null : json["subMerchantID"];
  model.subMerchantList = json["subMerchantList"] == null ? [] : List<SubMerchant>.from(json["subMerchantList"].map((x) => x));
  model.tokenizeWithoutAuthorization = json["tokenizeWithoutAuthorization"] == null ? null : json["tokenizeWithoutAuthorization"];
  model.uniqueTransactionCode = json["uniqueTransactionCode"] == null ? null : json["uniqueTransactionCode"];
  model.useStoredCardOnly = json["useStoredCardOnly"] == null ? null : json["useStoredCardOnly"];
  model.userDefined1 = json["userDefined1"] == null ? null : json["userDefined1"];
  model.userDefined2 = json["userDefined2"] == null ? null : json["userDefined2"];
  model.userDefined3 = json["userDefined3"] == null ? null : json["userDefined3"];
  model.userDefined4 = json["userDefined4"] == null ? null : json["userDefined4"];
  model.userDefined5 = json["userDefined5"] == null ? null : json["userDefined5"];
  model.version = json["version"] == null ? null : json["version"];

  return model;
}