typeUrlFrom method
Looks up a type URL of the given message type.
Throws an StateError
if the type is unknown.
Implementation
String typeUrlFrom(Type type) {
var typeUrl = _typeToUrl[type];
if (typeUrl == null) {
throw UnknownTypeError(runtimeType: type);
}
return typeUrl;
}