public class JsonDeserializer
extends Converter.Factory
| Modifier and Type | Field and Description |
|---|---|
Gson |
gson |
| Constructor and Description |
|---|
JsonDeserializer(Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
static JsonDeserializer |
create() |
static JsonDeserializer |
create(Gson gson) |
static <T> T |
deserializeJson(java.lang.String jsonString,
java.lang.Class<T> type) |
<any> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
Retrofit retrofit) |
<any> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
Retrofit retrofit) |
public static JsonDeserializer create()
public static JsonDeserializer create(Gson gson)
public <any> responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
Retrofit retrofit)
public <any> requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
Retrofit retrofit)
public static <T> T deserializeJson(java.lang.String jsonString,
java.lang.Class<T> type)