Extension class

Represents an extension that may modify the interpretation of the resource or element that contains it.

Constructors

Extension({Uri? url, FixedList<Extension>? extension, bool? valueBoolean})
Constructs a new Extension with an optional URL, nested extensions, and a boolean value.
Extension.fromJson(JsonObject _json)
Constructs a new Extension instance from the provided JSON object.

Properties

extension → FixedList<Extension>?
Nested extensions providing additional information.
no setter
hashCode → int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Extension instance to a JSON object.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → Uri?
The URL that identifies the meaning of the extension.
no setter
valueBoolean → bool?
The boolean value for the extension.
no setter

Methods

copyWith({Uri? url, FixedList<Extension>? extension, bool? valueBoolean}) → Extension
Creates a copy of this Extension but with the given fields
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

extensionField → const FieldDefinition<FixedList<Extension>>
Field definition for extension
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Extension
urlField → const FieldDefinition<Uri>
Field definition for url
valueBooleanField → const FieldDefinition<bool>
Field definition for valueBoolean