toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
json[r'organizationId'] = organizationId;
json[r'description'] = description;
json[r'value'] = value;
if (tag != null) {
json[r'tag'] = tag;
} else {
json[r'tag'] = null;
}
json[r'employeeId'] = employeeId;
if (customerId != null) {
json[r'customerId'] = customerId;
} else {
json[r'customerId'] = null;
}
json[r'date'] = date.toUtc().toIso8601String();
return json;
}