toJson method
Implementation
Map<String, Object?> toJson() {
var position = this.position;
var department = this.department;
var location = this.location;
final json = <String, Object?>{};
if (position != null) {
json[r'position'] = position;
}
if (department != null) {
json[r'department'] = department;
}
if (location != null) {
json[r'location'] = location;
}
return json;
}