JsonValue class abstract
Represents a JSON value
- Inheritance
- Implementers
- Available extensions
- Annotations
-
- @immutable
Constructors
- JsonValue()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getConstructor(
) → String -
override
-
map<
TResult extends Object?> ({required TResult $null(JsonValueNull value), required TResult $boolean(JsonValueBoolean value), required TResult number(JsonValueNumber value), required TResult $string(JsonValueString value), required TResult array(JsonValueArray value), required TResult $object(JsonValueObject value)}) → TResult -
Available on JsonValue, provided by the JsonValueExtensions extension
-
maybeMap<
TResult extends Object?> ({TResult $null(JsonValueNull value)?, TResult $boolean(JsonValueBoolean value)?, TResult number(JsonValueNumber value)?, TResult $string(JsonValueString value)?, TResult array(JsonValueArray value)?, TResult $object(JsonValueObject value)?, required TResult orElse()}) → TResult -
Available on JsonValue, provided by the JsonValueExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → JsonValue? - Inherited by: JsonValueArray JsonValueBoolean JsonValueNull JsonValueNumber JsonValueObject JsonValueString
Constants
- constructor → const String