copyWith method
Creates a copy of the OperationOutcome instance and allows for non-destructive mutation.
Implementation
OperationOutcome<T> copyWith({
String? id,
Meta? meta,
Narrative? text,
FixedList<Issue>? issue,
}) =>
OperationOutcome<T>(
id: id ?? this.id,
meta: meta ?? this.meta,
text: text ?? this.text,
issue: issue ?? this.issue,
);