Type constructor

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

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