kt-mvvm / com.dukescript.api.kt / Model / loadJSON

loadJSON

fun <T> loadJSON(clazz: Class<T>, baseUrl: String, onSuccess: (List<T>) -> Unit, onError: (Throwable) -> Unit, method: String, data: Any?, headers: Map<String, String>?, afterUrl: String?): Unit

Helper method that is called by com.dukescript.api.kt.loadJSON.