JsonValue<T> class
final
A present JSON property with value (which may be null).
Constructors
- JsonValue(T? value)
-
Creates a present JSON property with
value.const - JsonValue.nullValue()
-
Creates a present JSON property with a
nullvalue.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAbsent → bool
-
Whether the key was omitted from the JSON map.
no setterinherited
- isNull → bool
-
Whether the key was present with a
nullvalue.no setteroverride - isPresent → bool
-
Whether the key was present in the JSON map.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
The present property value, or
nullwhen explicitly set tonull.final - valueOrNull → T?
-
The property value when present, or
nullwhen absent ornull.no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override