package ai.decompile.analysis.model.dto;

import ai.decompile.analysis.model.entity.StaticSegment;
import java.util.UUID;

public record SegmentResponse(UUID id, String name, String startAddress, String endAddress) {
  public static SegmentResponse from(StaticSegment s) {
    return new SegmentResponse(s.getId(), s.getName(), s.getStartAddress(), s.getEndAddress());
  }
}
