pack static method

Any pack(
  1. GeneratedMessage message, {
  2. String typeUrlPrefix = 'type.googleapis.com',
})

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;
}