Skip to content

Instantly share code, notes, and snippets.

@gavelez
Created December 9, 2020 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavelez/e561dadc36574d342bab736464303801 to your computer and use it in GitHub Desktop.
Save gavelez/e561dadc36574d342bab736464303801 to your computer and use it in GitHub Desktop.
Empty secondary constructor for Data Class
data class Repository(
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("", mutableListOf<String>(),
"", mutableListOf<Int>(), -1,
"", "", hashMapOf<Any, Any>(),
-1, LinkedTreeMap<Any, Any>()
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment