const val START_ACTION = “start”
enum class Actions(val info: String) {
START(START_ACTION)
}
@Serializable
data class ActionRequest(
@SerialName(“action_type”). —> backend datatype
val actionType: Actions. ----> enum is compulsory to use here
)
val actionRequest = ActionRequest(actionType = START)
Here, I am getting output is “START” rather than “start”.
Can someone please help me with how to get the value of action?