operator [] method
Returns a zero-cost wrapper for the field with the given name
.
This method shadows the []
operator to provide a type-safe way to access
fields in the JSON object without needing to cast the result or check its
type or nullability.
Implementation
@pragma('vm:prefer-inline')
JsonAny operator [](String name) => JsonAny._(fields[name]);