toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'policyAmount'] = this.policyAmount;
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;
}
json[r'monthlyPremiumAmount'] = this.monthlyPremiumAmount;
if (this.annualPremiumAmount != null) {
json[r'annualPremiumAmount'] = this.annualPremiumAmount;
} else {
json[r'annualPremiumAmount'] = null;
}
if (this.semiAnnualPremiumAmount != null) {
json[r'semiAnnualPremiumAmount'] = this.semiAnnualPremiumAmount;
} else {
json[r'semiAnnualPremiumAmount'] = null;
}
if (this.onlineAppAvailable != null) {
json[r'onlineAppAvailable'] = this.onlineAppAvailable;
} else {
json[r'onlineAppAvailable'] = null;
}
if (this.noMedicalTest != null) {
json[r'noMedicalTest'] = this.noMedicalTest;
} else {
json[r'noMedicalTest'] = null;
}
if (this.packageType != null) {
json[r'packageType'] = this.packageType;
} else {
json[r'packageType'] = null;
}
if (this.recommended != null) {
json[r'recommended'] = this.recommended;
} else {
json[r'recommended'] = null;
}
if (this.medicalExam != null) {
json[r'medicalExam'] = this.medicalExam;
} else {
json[r'medicalExam'] = null;
}
if (this.policyName != null) {
json[r'policyName'] = this.policyName;
} else {
json[r'policyName'] = null;
}
if (this.carrierDecisionType != null) {
json[r'carrierDecisionType'] = this.carrierDecisionType;
} else {
json[r'carrierDecisionType'] = null;
}
if (this.partnerQuoteId != null) {
json[r'partnerQuoteId'] = this.partnerQuoteId;
} else {
json[r'partnerQuoteId'] = null;
}
if (this.convertToPermanent != null) {
json[r'convertToPermanent'] = this.convertToPermanent;
} else {
json[r'convertToPermanent'] = null;
}
if (this.childRider != null) {
json[r'childRider'] = this.childRider;
} else {
json[r'childRider'] = null;
}
if (this.acceleratedDeathBenefit != null) {
json[r'acceleratedDeathBenefit'] = this.acceleratedDeathBenefit;
} else {
json[r'acceleratedDeathBenefit'] = null;
}
if (this.waiverOfPremium != null) {
json[r'waiverOfPremium'] = this.waiverOfPremium;
} else {
json[r'waiverOfPremium'] = null;
}
if (this.isOnlineApplication != null) {
json[r'isOnlineApplication'] = this.isOnlineApplication;
} else {
json[r'isOnlineApplication'] = null;
}
if (this.deliveryMethod != null) {
json[r'deliveryMethod'] = this.deliveryMethod;
} else {
json[r'deliveryMethod'] = null;
}
if (this.examRequired != null) {
json[r'examRequired'] = this.examRequired;
} else {
json[r'examRequired'] = null;
}
return json;
}