pack static method
Creates a new Any encoding message
.
The typeUrl will be typeUrlPrefix
/fullName
where fullName
is
the fully qualified name of the type of message
.
Implementation
static Any pack($pb.GeneratedMessage message,
{$core.String typeUrlPrefix = 'type.googleapis.com'}) {
final result = create();
$mixin.AnyMixin.packIntoAny(result, message, typeUrlPrefix: typeUrlPrefix);
return result;
}