toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  json[r'serviceId'] = serviceId;
  json[r'employeeId'] = employeeId;
  json[r'customerId'] = customerId;
  json[r'from'] = from.toIso8601String();
  json[r'to'] = to.toIso8601String();
  json[r'color'] = color;
  json[r'eventName'] = eventName;
  json[r'status'] = status;
  if (recurrenceId != null) {
    json[r'recurrenceId'] = recurrenceId;
  }
  return json;
}