UnrecognizedKeysException class Null safety

Exception thrown if there are unrecognized keys in a JSON map that was provided during deserialization.

Inheritance

Constructors

UnrecognizedKeysException(List<String> unrecognizedKeys, Map map, List<String> allowedKeys)

Properties

allowedKeys List<String>
The allowed keys for map.
final
hashCode int
The hash code for this object.
read-onlyinherited
map Map
The source Map that the unrecognized keys were found in.
finalinherited
message String
A human-readable message corresponding to the error.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
unrecognizedKeys List<String>
The keys from map that were unrecognized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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