JsonDecodingError class
Error that may be thrown by Kind.decodeJsonTree.
- Inheritance
-
- Object
- Error
- ArgumentError
- JsonDecodingError
Constructors
- JsonDecodingError({required Object? value, required String? message})
- JsonDecodingError.expected(Object? json, {required String expectedType})
-
factory
- JsonDecodingError.expectedBool(Object? json)
-
factory
- JsonDecodingError.expectedList(Object? json)
-
factory
- JsonDecodingError.expectedNull(Object? json)
-
factory
- JsonDecodingError.expectedNumber(Object? json)
-
factory
- JsonDecodingError.expectedNumberOrString(Object? json)
-
factory
- JsonDecodingError.expectedObject(Object? json)
-
factory
- JsonDecodingError.expectedString(Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidValue → dynamic
-
The invalid value.
finalinherited
- message → dynamic
-
Message describing the problem.
finalinherited
- name → String?
-
Name of the invalid argument, if available.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited