toMap method

Map<String, dynamic> toMap()

Implementation

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