Timing constructor

Timing({
  1. FixedList<DateTime>? event,
  2. Repeat? repeat,
  3. CodeableConcept? code,
})

Creates a new Timing instance.

Implementation

Timing({
  FixedList<DateTime>? event,
  Repeat? repeat,
  CodeableConcept? code,
}) : this.fromJson(
        JsonObject({
          if (event != null)
            eventField.name: JsonArray.unmodifiable(
              event.map((e) => JsonString(e.toIso8601String())),
            ),
          if (repeat != null) repeatField.name: repeat.json,
          if (code != null) codeField.name: code.json,
        }),
      );