ProtoGoogleAny.deserialize constructor

ProtoGoogleAny.deserialize(
  1. List<int> bytes
)

Implementation

factory ProtoGoogleAny.deserialize(List<int> bytes) {
  final decode = ProtoBufferDecoder.decode(
    bytes: bytes,
    messageConfig: protoConfigStatic(),
  );
  return ProtoGoogleAny._(
    typeUrl: decode.getString<String>(1),
    value: decode.getBytes<List<int>?>(2),
    isBinary: true,
  );
}