operator [] method

Object? operator [](
  1. String keyword
)

Returns a keyword's original value, or null if it is absent or null.

Implementation

Object? operator [](String keyword) {
  if (_json is Map<String, dynamic> && _json.containsKey(keyword)) {
    final value = _json[keyword];
    return value == null ? null : _deepUnmodifiable(value);
  }
  final value = _schemaView[keyword];
  return value == null ? null : _deepUnmodifiable(value);
}