package ai.decompile.analysis.model.dto;

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

public record StringResponse(
    UUID id, String address, String value, String encoding, String referencedBy) {
  public static StringResponse from(StaticString s) {
    return new StringResponse(
        s.getId(), s.getAddress(), s.getValue(), s.getEncoding(), s.getReferencedBy());
  }
}
