📅  最后修改于: 2022-03-11 14:57:26.330000             🧑  作者: Mango
val gson = Gson()
val type = object : TypeToken() {}.type
var errorResponse: ErrorResponse? = gson.fromJson(response.errorBody()!!.charStream(), type)