commonMain.com.iprd.report.OrgItem.kt Maven / Gradle / Ivy
The newest version!
/* IPRD Group 2022 */
package com.iprd.report
data class OrgItem(
val id: String,
val name: String,
val type: OrgType,
val parentId: String? = null,
val logo: String? = null,
val children: MutableList
)
enum class OrgType(val value: String) {
COUNTRY("country"), STATE("state"), LGA("lga"), WARD("ward"), FACILITY("facility"), NONE("none");
companion object {
fun getByValue(value: String): OrgType {
return values().first { it.name == value }
}
}
}