package dp.kotul.templategroupsbackend.model.response

import com.fasterxml.jackson.annotation.JsonProperty

data class TemplateVariableResponse(
        val templateVariableId: Int,
        val templateVariableExtId: String,
        val name: String,
        @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
        val templateVariableExtType: String,
        val included: Boolean,
        val defaultValue: String?,
        val mandatoryExt: Boolean,
        val variableSource: VariableSourceResponse?
) {
    val type: TemplateVariableType? = TemplateVariableType.getTemplateVariableType(templateVariableExtType)
}
