Appointment constructor

Appointment({
  1. String? id,
  2. Meta? meta,
  3. AppointmentStatus? status,
  4. FixedList<CodeableConcept>? serviceCategory,
  5. FixedList<Participant>? participant,
  6. 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),
        }),
      );