package com.devjob.job.dto;

import com.devjob.job.domain.Company;

public record CompanyResponse(
        Long id,
        String name,
        String location
) {
    public static CompanyResponse from(Company company) {
        return new CompanyResponse(company.getId(), company.getName(), company.getLocation());
    }
}
