CodeableReference constructor

CodeableReference({
  1. FixedList<Coding>? coding,
  2. String? text,
})

Creates a new CodeableReference instance.

Implementation

CodeableReference({
  FixedList<Coding>? coding,
  String? text,
}) : this.fromJson(
        JsonObject({
          if (coding != null)
            codingField.name: JsonArray.unmodifiable(
              coding.map((e) => e.json),
            ),
          if (text != null) textField.name: JsonString(text),
        }),
      );