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