OperationOutcome<T> class

A collection of error, warning, or information messages that result from a system action.

Inheritance
Implemented types
Available extensions

Constructors

OperationOutcome({String? id, Meta? meta, Narrative? text, FixedList<Issue>? issue})
Constructs a new OperationOutcome.
OperationOutcome.error({required NarrativeStatus status, required String details})
OperationOutcome.fromJson(JsonObject json)
Creates an OperationOutcome instance from the provided JSON object.

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → String?
The id of the resource
no setterinherited
issue → FixedList<Issue>?
A single issue associated with the action.
no setter
json → JsonObject
finalinherited
meta → Meta?
The metadata of the resource
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → Narrative?
A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human.
no setter

Methods

copyWith({String? id, Meta? meta, Narrative? text, FixedList<Issue>? issue}) → OperationOutcome<T>
Creates a copy of the OperationOutcome instance and allows for non-destructive mutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(List<FieldDefinition> fieldDefinitions) → ValidationResult

Available on Resource, provided by the ResourceValidationExtensions extension

Validates the resource based on the provided fieldDefinitions.
withFieldResource<T2 extends Resource>(FieldDefinition<T2> field, T2 resource, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withFieldValue(FieldDefinition field, JsonValue value, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withNullField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) → UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

withUndefinedField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) → UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for OperationOutcome.
issueField → const FieldDefinition<FixedList<Issue>>
Field definition for issue.
textField → const FieldDefinition<Narrative>
Field definition for text.