public final class GsonMapper extends Object implements JsonMapper
Gson| Modifier and Type | Method and Description |
|---|---|
<T> T |
fromJson(String json,
Class<T> resultClass)
Converts the supplied JSON string to the result class
|
static GsonMapper |
getInstance() |
public static GsonMapper getInstance()
public <T> T fromJson(String json, Class<T> resultClass)
fromJson in interface JsonMapperT - The type of the return objectjson - The json stringresultClass - The expected result classCopyright © 2017. All rights reserved.