toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
if (collector != null) {
data['collector'] = collector!.toJson();
}
if (company != null) {
data['company'] = company!.toJson();
}
data['deleted'] = deleted;
data['id'] = id;
data['linked_machine'] = linkedMachine;
data['name'] = name;
return data;
}