unpackInto<T extends GeneratedMessage> method
T
unpackInto<T extends GeneratedMessage>(
- T instance, {
- ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY,
inherited
Unpacks the message in value into instance.
Throws a InvalidProtocolBufferException if typeUrl does not correspond
to the type of instance.
A typical usage would be any.unpackInto(Message()).
Returns instance.
Implementation
T unpackInto<T extends GeneratedMessage>(
T instance, {
ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY,
}) {
unpackIntoHelper(
value,
instance,
typeUrl,
extensionRegistry: extensionRegistry,
);
return instance;
}