Extra.fromJson constructor

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

Implementation

Extra.fromJson(Map<String, dynamic> json) {
  List<String> enableCardCompanies = [];
  if(json['enableCardCompanies'] is List<dynamic>) {
    enableCardCompanies = List<String>.from(json['enableCardCompanies']);
  }

  List<String> exceptCardCompanies = [];
  if(json['exceptCardCompanies'] is List<dynamic>) {
    exceptCardCompanies = List<String>.from(json['exceptCardCompanies']);
  }

  List<String> enableEasyPayments = [];
  if(json['enableEasyPayments'] is List<dynamic>) {
    enableEasyPayments = List<String>.from(json['enableEasyPayments']);
  }

  cardQuota = json["card_quota"];
  sellerName = json["seller_name"];

  deliveryDay = json["delivery_day"];
  locale = json["locale"];
  offerPeriod = json["offer_period"];

  displayCashReceipt = json["display_cash_receipt"];
  depositExpiration = json["deposit_expiration"];
  appScheme = json["app_scheme"];

  useCardPoint = json["use_card_point"];
  directCardCompany = json["direct_card_company"];
  useOrderId = json["use_order_id"];
  internationalCardOnly = json["international_card_only"];
  phoneCarrier = json["phone_carrier"];
  directSamsungpay = json["direct_samsungpay"];
  testDeposit = json["test_deposit"];
  enableErrorWebhook = json["enable_error_webhook"];
  separatelyConfirmed = json["separately_confirmed"];
  confirmOnlyRestApi = json["confirm_only_rest_api"];
  openType = json["open_type"];
  useBootpayInappSdk = json["use_bootpay_inapp_sdk"];
  redirectUrl = json["redirect_url"];
  displaySuccessResult = json["display_success_result"];
  displayErrorResult = json["display_error_result"];
  // disposableCupDeposit = json["disposable_cup_deposit"];
  useWelcomepayment = json["use_welcomepayment"];
  firstSubscriptionComment = json["first_subscription_comment"];
  this.enableCardCompanies = enableCardCompanies;
  this.exceptCardCompanies = exceptCardCompanies;
  this.enableEasyPayments = enableEasyPayments;
  confirmGraceSeconds = json["confirm_grace_seconds"];
  ageLimit = json["age_limit"];
  subscribeTestPayment = json["subscribe_test_payment"];
  timeout = json["timeout"];
  escrow = json["escrow"];
  showCloseButton = json["show_close_button"];
  commonEventWebhook = json["common_event_webhook"];
  deliveryPrice = json["delivery_price"];
  useExtraDeduction = json["use_extra_deduction"];
  directCardInterest = json["direct_card_interest"];

  useExtraDeduction = json["use_extra_deduction"];
  directCardInterest = json["direct_card_interest"];
  easyPaymentMethod = json["easy_payment_method"];
  cashReceiptType = json["cash_receipt_type"];
  identityNo = json["identity_no"];
  subscriptionComment = json["subscription_comment"];
}