Type constructor
Constructs a new Type with an optional text and coding.
Implementation
Type({
String? text,
FixedList<Coding>? coding,
}) : this.fromJson(
JsonObject({
if (text != null) textField.name: JsonString(text),
if (coding != null)
codingField.name: JsonArray.unmodifiable(
coding.map((e) => e.json),
),
}),
);