missingKey method

  1. @override
dynamic missingKey(
  1. String jsonPath,
  2. String key
)

Create an exception to throw if the JSON object at jsonPath is missing the key key.

Implementation

@override
dynamic missingKey(String jsonPath, String key) {
  return Exception('Missing key $key at $jsonPath');
}