InvalidJsonTypeException class
Thrown when an invalid Json type value is detected.
An expression whose static type is a Json type and whose value does not
have any of the types Null, bool, int, double, String,
List<Json>, Map<String, Json> is an invalid Json type value. This
exception is used to report that such a value has been encountered.
Note that Json is an extension type whose underlying representation type
is Object?, and hence any List<T> where T is a top type will yield
true when tested with is List<Json>. Similarly for maps: any map whose
run-time type is Map<String, T> where T is a top type will yield
true when tested with is Map<String, Json>.
- Implemented types
Constructors
- InvalidJsonTypeException(Object? value)
Properties
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.
inherited