feat: added icons for cards
This commit is contained in:
@@ -4,18 +4,6 @@ import kotlinx.serialization.Serializable
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
|
||||
private fun jsonObjectToMap(obj: JSONObject): LinkedHashMap<String, String> {
|
||||
val map = LinkedHashMap<String, String>()
|
||||
val keys = obj.keys()
|
||||
|
||||
while (keys.hasNext()) {
|
||||
val key = keys.next()
|
||||
map[key] = obj.getString(key)
|
||||
}
|
||||
|
||||
return map
|
||||
}
|
||||
|
||||
@Serializable
|
||||
class Field(
|
||||
val id: String,
|
||||
|
||||
Reference in New Issue
Block a user