Appointment constructor
Appointment({
- String? id,
- Meta? meta,
- AppointmentStatus? status,
- FixedList<
CodeableConcept> ? serviceCategory, - FixedList<
Participant> ? participant, - String? description,
Constructs a new Appointment.
Implementation
Appointment({
String? id,
Meta? meta,
AppointmentStatus? status,
FixedList<CodeableConcept>? serviceCategory,
FixedList<Participant>? participant,
String? description,
}) : super._internal(
JsonObject({
if (id != null) 'id': JsonString(id),
if (meta != null) 'meta': meta.json,
if (status != null) statusField.name: JsonString(status.code),
if (serviceCategory != null)
serviceCategoryField.name:
JsonArray.unmodifiable(serviceCategory.map((e) => e.json)),
if (participant != null)
participantField.name:
JsonArray.unmodifiable(participant.map((e) => e.json)),
if (description != null)
descriptionField.name: JsonString(description),
}),
);