OperationOutcome<T> constructor

OperationOutcome<T>({
  1. String? id,
  2. Meta? meta,
  3. Narrative? text,
  4. FixedList<Issue>? issue,
})

Constructs a new OperationOutcome.

Implementation

OperationOutcome({
  String? id,
  Meta? meta,
  Narrative? text,
  FixedList<Issue>? issue,
}) : super._internal(
        JsonObject({
          if (id != null) Resource.idField.name: JsonString(id),
          if (meta != null) Resource.metaField.name: meta.json,
          if (text != null) textField.name: text.json,
          if (issue != null)
            issueField.name: JsonArray.unmodifiable(issue.map((e) => e.json)),
        }),
      );