SourceCodeInfoLocation.deserialize constructor

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

Implementation

factory SourceCodeInfoLocation.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return SourceCodeInfoLocation(
    path: decode.getListOrEmpty<int>(1),
    span: decode.getListOrEmpty<int>(2),
    leadingComments: decode.getString<String?>(3),
    trailingComments: decode.getString<String?>(4),
    leadingDetachedComments: decode.getListOrEmpty<String>(6),
  );
}