Gson
Installation
implementation 'com.github.kittinunf.fuel:fuel:<latest-version>'
implementation 'com.github.kittinunf.fuel:fuel-gson:<latest-version>'Usage
Gson Deserialization
data class HttpBinUserAgentModel(var userAgent: String = "")
Fuel.get("/user-agent").responseObject<HttpBinUserAgentModel> { _, _, result ->
// handle result similarly as it is shown by the core module
}Last updated
Was this helpful?