UnrecognizedKeysException class

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-only, inherited
map → Map
The source Map that the unrecognized keys were found in.
final, inherited
message → String
A human-readable message corresponding to the error.
read-only, override
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
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
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited