toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.details != null) {
json[r'details'] = this.details;
} else {
json[r'details'] = null;
}
if (this.rate != null) {
json[r'rate'] = this.rate;
} else {
json[r'rate'] = null;
}
json[r'annualPercentYield'] = this.annualPercentYield;
json[r'compoundingMethod'] = this.compoundingMethod;
if (this.introductoryPeriodMonths != null) {
json[r'introductoryPeriodMonths'] = this.introductoryPeriodMonths;
} else {
json[r'introductoryPeriodMonths'] = null;
}
if (this.introductoryRate != null) {
json[r'introductoryRate'] = this.introductoryRate;
} else {
json[r'introductoryRate'] = null;
}
json[r'minimumDeposit'] = this.minimumDeposit;
if (this.minimumDepositWithFees != null) {
json[r'minimumDepositWithFees'] = this.minimumDepositWithFees;
} else {
json[r'minimumDepositWithFees'] = null;
}
json[r'monthlyFee'] = this.monthlyFee;
if (this.checkWriting != null) {
json[r'checkWriting'] = this.checkWriting;
} else {
json[r'checkWriting'] = null;
}
json[r'effectiveAsOf'] = this.effectiveAsOf.toUtc().toIso8601String();
if (this.federalInsuranceType != null) {
json[r'federalInsuranceType'] = this.federalInsuranceType;
} else {
json[r'federalInsuranceType'] = null;
}
json[r'incentiveDetails'] = this.incentiveDetails;
if (this.cdTermUnit != null) {
json[r'cdTermUnit'] = this.cdTermUnit;
} else {
json[r'cdTermUnit'] = null;
}
if (this.cdTermLength != null) {
json[r'cdTermLength'] = this.cdTermLength;
} else {
json[r'cdTermLength'] = null;
}
json[r'impressionTrackingPixelUrls'] = this.impressionTrackingPixelUrls;
return json;
}