AnyBinary.deserialize constructor

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

Implementation

factory AnyBinary.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return AnyBinary(
    typeUrl: decode.getString<String?>(1),
    value: decode.getBytes<List<int>?>(2),
  );
}