How To Declare A Constructor With No Argument In Korlin

[Solved] How To Declare A Constructor With No Argument In Korlin | Kotlin - Code Explorer | yomemimo.com
Question : how to declare a constructor with no argument in korlin

Answered by : hannan

data class Activity( var updated_on: String, var tags: List<String>, var description: String, var user_id: List<Int>, var status_id: Int, var title: String, var created_at: String, var data: HashMap<*, *>, var id: Int, var counts: LinkedTreeMap<*, *>
) { constructor() : this("", emptyList(), "", emptyList(), -1, "", "", hashMapOf<Any, Any>(), -1, LinkedTreeMap<Any, Any>() )
}

Source : | Last Update : Fri, 15 Apr 22

Answers related to how to declare a constructor with no argument in korlin

Code Explorer Popular Question For Kotlin