isWellKnownJsonType function

bool isWellKnownJsonType(
  1. String typeName
)

Whether typeName is a well-known type with a dedicated proto3-JSON form. (google.protobuf.Any is excluded — it requires a type registry.)

Implementation

bool isWellKnownJsonType(String typeName) =>
    _wktWrappers.containsKey(typeName) || _wktStructural.contains(typeName);