Slot constructor
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,
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),
}),
);