NullValue class final
Represents a JSON null.
NullValue is a sentinel, using an enum with only one value to represent
the null value for the Value type union.
A field of type NullValue with any value other than 0 is considered
invalid. Most ProtoJSON serializers will emit a Value with a null_value set
as a JSON null regardless of the integer value, and so will round trip to
a 0 value.
Constructors
- NullValue(String value)
-
const
- NullValue.fromJson(Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotDefault → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object? -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited