Schedule constructor

Schedule({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. bool? active,
  5. FixedList<CodeableConcept>? serviceCategory,
  6. FixedList<CodeableConcept>? serviceType,
  7. FixedList<CodeableConcept>? specialty,
  8. FixedList<Reference>? actor,
  9. Period? planningHorizon,
  10. String? comment,
})

Constructs a new Schedule.

Implementation

Schedule({
  String? id,
  Meta? meta,
  FixedList<Identifier>? identifier,
  bool? active,
  FixedList<CodeableConcept>? serviceCategory,
  FixedList<CodeableConcept>? serviceType,
  FixedList<CodeableConcept>? specialty,
  FixedList<Reference>? actor,
  Period? planningHorizon,
  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 (active != null) activeField.name: JsonBoolean(active),
          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 (actor != null)
            actorField.name: JsonArray.unmodifiable(actor.map((e) => e.json)),
          if (planningHorizon != null)
            planningHorizonField.name: planningHorizon.json,
          if (comment != null) commentField.name: JsonString(comment),
        }),
      );