toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'uuid'] = this.uuid;
  json[r'productType'] = this.productType;
  json[r'productSubType'] = this.productSubType;
  if (this.productSubTypeDisclaimer != null) {
    json[r'productSubTypeDisclaimer'] = this.productSubTypeDisclaimer;
  } else {
    json[r'productSubTypeDisclaimer'] = null;
  }
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  json[r'originator'] = this.originator;
  if (this.originatorId != null) {
    json[r'originatorId'] = this.originatorId;
  } else {
    json[r'originatorId'] = null;
  }
  json[r'preQualified'] = this.preQualified;
  json[r'preApproved'] = this.preApproved;
  json[r'secured'] = this.secured;
  json[r'coApplicant'] = this.coApplicant;
  json[r'sponsored'] = this.sponsored;
  json[r'maxAmount'] = this.maxAmount;
  if (this.minAmount != null) {
    json[r'minAmount'] = this.minAmount;
  } else {
    json[r'minAmount'] = null;
  }
  if (this.termLength != null) {
    json[r'termLength'] = this.termLength;
  } else {
    json[r'termLength'] = null;
  }
  if (this.termUnit != null) {
    json[r'termUnit'] = this.termUnit;
  } else {
    json[r'termUnit'] = null;
  }
  if (this.displayTermUnit != null) {
    json[r'displayTermUnit'] = this.displayTermUnit;
  } else {
    json[r'displayTermUnit'] = null;
  }
  if (this.termDescription != null) {
    json[r'termDescription'] = this.termDescription;
  } else {
    json[r'termDescription'] = null;
  }
  if (this.maxApr != null) {
    json[r'maxApr'] = this.maxApr;
  } else {
    json[r'maxApr'] = null;
  }
  if (this.minApr != null) {
    json[r'minApr'] = this.minApr;
  } else {
    json[r'minApr'] = null;
  }
  if (this.meanApr != null) {
    json[r'meanApr'] = this.meanApr;
  } else {
    json[r'meanApr'] = null;
  }
  json[r'aprType'] = this.aprType;
  if (this.aprDescription != null) {
    json[r'aprDescription'] = this.aprDescription;
  } else {
    json[r'aprDescription'] = null;
  }
  if (this.feeRate != null) {
    json[r'feeRate'] = this.feeRate;
  } else {
    json[r'feeRate'] = null;
  }
  if (this.maxFeeRate != null) {
    json[r'maxFeeRate'] = this.maxFeeRate;
  } else {
    json[r'maxFeeRate'] = null;
  }
  if (this.minFeeRate != null) {
    json[r'minFeeRate'] = this.minFeeRate;
  } else {
    json[r'minFeeRate'] = null;
  }
  if (this.feeFixed != null) {
    json[r'feeFixed'] = this.feeFixed;
  } else {
    json[r'feeFixed'] = null;
  }
  if (this.maxFeeFixed != null) {
    json[r'maxFeeFixed'] = this.maxFeeFixed;
  } else {
    json[r'maxFeeFixed'] = null;
  }
  if (this.minFeeFixed != null) {
    json[r'minFeeFixed'] = this.minFeeFixed;
  } else {
    json[r'minFeeFixed'] = null;
  }
  json[r'allowPrepayment'] = this.allowPrepayment;
  if (this.prepaymentFee != null) {
    json[r'prepaymentFee'] = this.prepaymentFee;
  } else {
    json[r'prepaymentFee'] = null;
  }
  if (this.monthlyPayment != null) {
    json[r'monthlyPayment'] = this.monthlyPayment;
  } else {
    json[r'monthlyPayment'] = null;
  }
  if (this.maxMonthlyPayment != null) {
    json[r'maxMonthlyPayment'] = this.maxMonthlyPayment;
  } else {
    json[r'maxMonthlyPayment'] = null;
  }
  if (this.minMonthlyPayment != null) {
    json[r'minMonthlyPayment'] = this.minMonthlyPayment;
  } else {
    json[r'minMonthlyPayment'] = null;
  }
  if (this.monthlyPaymentDescription != null) {
    json[r'monthlyPaymentDescription'] = this.monthlyPaymentDescription;
  } else {
    json[r'monthlyPaymentDescription'] = null;
  }
  if (this.meanMonthlyPayment != null) {
    json[r'meanMonthlyPayment'] = this.meanMonthlyPayment;
  } else {
    json[r'meanMonthlyPayment'] = null;
  }
  if (this.maxTotalPayment != null) {
    json[r'maxTotalPayment'] = this.maxTotalPayment;
  } else {
    json[r'maxTotalPayment'] = null;
  }
  if (this.minTotalPayment != null) {
    json[r'minTotalPayment'] = this.minTotalPayment;
  } else {
    json[r'minTotalPayment'] = null;
  }
  if (this.meanTotalPayment != null) {
    json[r'meanTotalPayment'] = this.meanTotalPayment;
  } else {
    json[r'meanTotalPayment'] = null;
  }
  if (this.recommendationScore != null) {
    json[r'recommendationScore'] = this.recommendationScore;
  } else {
    json[r'recommendationScore'] = null;
  }
  if (this.payout != null) {
    json[r'payout'] = this.payout;
  } else {
    json[r'payout'] = null;
  }
  if (this.conversionProbability != null) {
    json[r'conversionProbability'] = this.conversionProbability;
  } else {
    json[r'conversionProbability'] = null;
  }
  if (this.terms != null) {
    json[r'terms'] = this.terms;
  } else {
    json[r'terms'] = null;
  }
  if (this.amountPrefix != null) {
    json[r'amountPrefix'] = this.amountPrefix;
  } else {
    json[r'amountPrefix'] = null;
  }
  return json;
}