toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'employeeId'] = employeeId;
json[r'serviceId'] = serviceId;
json[r'customerId'] = customerId;
json[r'from'] = from!.toIso8601String();
json[r'to'] = to!.toIso8601String();
if (recurrence != null) {
json[r'recurrence'] = recurrence;
}
return json;
}