Slot constructor

Slot({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. List<CodeableConcept>? serviceCategory,
  5. List<CodeableConcept>? serviceType,
  6. List<CodeableConcept>? specialty,
  7. CodeableConcept? appointmentType,
  8. String? schedule,
  9. SlotStatus? status,
  10. DateTime? start,
  11. DateTime? end,
  12. bool? overbooked,
  13. String? comment,
})

Constructs a new Slot.

Implementation

Slot({
  String? id,
  Meta? meta,
  FixedList<Identifier>? identifier,
  List<CodeableConcept>? serviceCategory,
  List<CodeableConcept>? serviceType,
  List<CodeableConcept>? specialty,
  CodeableConcept? appointmentType,
  String? schedule,
  SlotStatus? status,
  DateTime? start,
  DateTime? end,
  bool? overbooked,
  String? comment,
}) : super._internal(
        JsonObject({
          if (id != null) Resource.idField.name: JsonString(id),
          if (meta != null) Resource.metaField.name: meta.json,
          if (identifier != null)
            identifierField.name:
                JsonArray.unmodifiable(identifier.map((e) => e.json)),
          if (serviceCategory != null)
            serviceCategoryField.name:
                JsonArray.unmodifiable(serviceCategory.map((e) => e.json)),
          if (serviceType != null)
            serviceTypeField.name:
                JsonArray.unmodifiable(serviceType.map((e) => e.json)),
          if (specialty != null)
            specialtyField.name:
                JsonArray.unmodifiable(specialty.map((e) => e.json)),
          if (appointmentType != null)
            appointmentTypeField.name: appointmentType.json,
          if (schedule != null) scheduleField.name: JsonString(schedule),
          if (status != null) statusField.name: JsonString(status.code),
          if (start != null)
            startField.name: JsonString(start.toIso8601String()),
          if (end != null) endField.name: JsonString(end.toIso8601String()),
          if (overbooked != null)
            overbookedField.name: JsonBoolean(overbooked),
          if (comment != null) commentField.name: JsonString(comment),
        }),
      );