CodeableConcept constructor

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

Creates a new CodeableConcept instance.

Implementation

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