toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.carrierName != null) {
json[r'carrierName'] = this.carrierName;
} else {
json[r'carrierName'] = null;
}
if (this.timeInsuredMonths != null) {
json[r'timeInsuredMonths'] = this.timeInsuredMonths;
} else {
json[r'timeInsuredMonths'] = null;
}
return json;
}