SourceCodeInfo.deserialize constructor

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

Implementation

factory SourceCodeInfo.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return SourceCodeInfo(
    location:
        decode
            .getListOfBytes(1)
            .map((b) => SourceCodeInfoLocation.deserialize(b))
            .toList(),
  );
}