CheckedFromJsonException class

Exception thrown if there is a runtime exception in fromJson code generated when JsonSerializableGenerator.checked is true

Implemented types

Constructors

CheckedFromJsonException(Map map, String? key, String className, String? message, {bool badKey = false})
Creates a new instance of CheckedFromJsonException.

Properties

badKey bool
If this was thrown due to an invalid or unsupported key, as opposed to an invalid value.
final
className String?
The name of the class being created when innerError was thrown.
no setter
hashCode int
The hash code for this object.
no setterinherited
innerError Object?
The Error or Exception that triggered this exception.
final
innerStack StackTrace?
The StackTrace for the Error or Exception that triggered this exception.
final
key String?
The key from map that corresponds to the thrown innerError.
final
map Map
The source Map that was used for decoding when the innerError was thrown.
final
message String?
A human-readable message corresponding to innerError.
final
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
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited