JsonValue class sealed
Constructors
- JsonValue.array(JsonArrayRef value)
-
constfactory
- JsonValue.bigInt(BigInt value)
-
constfactory
- JsonValue.boolean(bool value)
-
constfactory
- JsonValue.buffer(Uint8List value)
-
constfactory
- JsonValue.fromJson(Object? json_)
-
Returns a new instance from a JSON value.
May throw if the value does not have the expected structure.
factory
- JsonValue.map(JsonMapRef value)
-
constfactory
- JsonValue.null_()
-
constfactory
- JsonValue.number(double value)
-
constfactory
- JsonValue.str(String value)
-
constfactory
- JsonValue.undefined()
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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(
) → Map< String, Object?> - Returns this as a serializable JSON value.
-
toString(
) → String -
A string representation of this object.
inherited
-
toWasm(
) → (int, Object?) - Returns this as a WASM canonical abi value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited