toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (startDate != null) {
json[r'startDate'] = startDate;
}
if (endDate != null) {
json[r'endDate'] = endDate;
}
if (professionType != null) {
json[r'professionType'] = professionType;
}
if (employer != null) {
json[r'employer'] = employer;
}
return json;
}