unpackAny method

T unpackAny(
  1. Any any
)

Unpacks an Any message into this message.

Implementation

T unpackAny(Any any) {
  if (!any.canUnpackInto(this)) {
    throw ArgumentError(
      'Cannot unpack ${any.typeUrl} into $runtimeType',
    );
  }
  any.unpackInto(this);
  return this;
}