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