toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.employerName != null) {
json[r'employerName'] = this.employerName;
} else {
json[r'employerName'] = null;
}
if (this.employerAddress != null) {
json[r'employerAddress'] = this.employerAddress;
} else {
json[r'employerAddress'] = null;
}
if (this.employerAddress2 != null) {
json[r'employerAddress2'] = this.employerAddress2;
} else {
json[r'employerAddress2'] = null;
}
if (this.employerCity != null) {
json[r'employerCity'] = this.employerCity;
} else {
json[r'employerCity'] = null;
}
if (this.employerPhone != null) {
json[r'employerPhone'] = this.employerPhone;
} else {
json[r'employerPhone'] = null;
}
if (this.employerState != null) {
json[r'employerState'] = this.employerState;
} else {
json[r'employerState'] = null;
}
if (this.employerZip != null) {
json[r'employerZip'] = this.employerZip;
} else {
json[r'employerZip'] = null;
}
if (this.jobTitle != null) {
json[r'jobTitle'] = this.jobTitle;
} else {
json[r'jobTitle'] = null;
}
if (this.monthsEmployed != null) {
json[r'monthsEmployed'] = this.monthsEmployed;
} else {
json[r'monthsEmployed'] = null;
}
if (this.directDeposit != null) {
json[r'directDeposit'] = this.directDeposit;
} else {
json[r'directDeposit'] = null;
}
if (this.payDate1 != null) {
json[r'payDate1'] = _dateFormatter.format(this.payDate1!.toUtc());
} else {
json[r'payDate1'] = null;
}
if (this.payDate2 != null) {
json[r'payDate2'] = _dateFormatter.format(this.payDate2!.toUtc());
} else {
json[r'payDate2'] = null;
}
if (this.startDate != null) {
json[r'startDate'] = _dateFormatter.format(this.startDate!.toUtc());
} else {
json[r'startDate'] = null;
}
return json;
}