package dp.kotul.templategroupsbackend.model.response

import com.fasterxml.jackson.annotation.JsonProperty

data class TemplateVariableBasicResponse (
        val templateVariableId: Int,
        val templateVariableExtId: String,
        @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
        val templateVariableExtType: String,
        val name: String
) {
    val type: TemplateVariableType? = TemplateVariableType.getTemplateVariableType(templateVariableExtType)
}
