anyTypeResolver top-level property

List<Map<String, Object?>>? Function(String typeName)? anyTypeResolver
getter/setter pair

The library-global Any resolver, set by the host (e.g. conformance.dart) to enable Any JSON. It is the fallback used when a JSON (de)serialization is started without a per-call resolver — preserving full backward compatibility for callers that set this once and never thread a resolver per call.

Prefer the per-call AnyTypeResolver threaded through messageToJson/messageFromJson (and marshalJson/unmarshalJson); it does not mutate this global, so concurrent generated models with different registries do not stomp on each other.

Implementation

List<Map<String, Object?>>? Function(String typeName)? anyTypeResolver;