Context class final
Represents the JSON-LD @context
of a Thing Description or Thing Model.
- Annotations
-
- @immutable
Constructors
-
Context(List<
ContextEntry> contextEntries) -
Creates a new context from a list of
contextEntries
.
Properties
-
contextEntries
→ List<
ContextEntry> -
List of ContextEntry elements in this
@context
definition.final - defaultLanguageCode → String?
-
Determines the default language for this
@context
if defined.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- prefixMapping → PrefixMapping
-
Used to map context extension prefixes within the
@context
to URIs.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → List - Converts this class object into a JSON value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int index) → ContextEntry -
Allows for directly accessing this Context's contextEntries by
index
.