JsonValue<T> class final

A present JSON property with value (which may be null).

Inheritance
Annotations
  • @immutable

Constructors

JsonValue(T? value)
Creates a present JSON property with value.
const
JsonValue.nullValue()
Creates a present JSON property with a null value.
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 null value.
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 null when explicitly set to null.
final
valueOrNull → T?
The property value when present, or null when absent or null.
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