disallowUnrecognizedKeys property

  1. @override
bool disallowUnrecognizedKeys
final

If false (the default), then the generated FromJson function will ignore unrecognized keys in the provided JSON Map.

If true, unrecognized keys will cause an UnrecognizedKeysException to be thrown.

Implementation

@override
final bool disallowUnrecognizedKeys;