package com.betriebsratkanzlei.legalconsenthub.form_element

import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto
import org.springframework.stereotype.Component

@Component
class FormOptionMapper {
    fun toFormOptionDto(formOption: FormOption): FormOptionDto {
        return FormOptionDto(
            value = formOption.value,
            label = formOption.label,
            processingPurpose = formOption.processingPurpose,
            employeeDataCategory = formOption.employeeDataCategory
        )
    }

    fun toFormOption(formOptionDto: FormOptionDto): FormOption {
        return FormOption(
            value = formOptionDto.value,
            label = formOptionDto.label,
            processingPurpose = formOptionDto.processingPurpose,
            employeeDataCategory = formOptionDto.employeeDataCategory
        )
    }
}
