Package dev.sigstore.json
Class GsonChecked
java.lang.Object
dev.sigstore.json.GsonChecked
A Gson wrapper that catches all runtime exceptions.
-
Method Summary
Modifier and TypeMethodDescription<T> T<T> T<T> T<T> T<T> StringtoJson(T src) <T> voidtoJson(T src, Appendable writer)
-
Method Details
-
fromJson
public <T> T fromJson(com.google.gson.JsonElement element, Class<T> classOfT) throws JsonParseException - Throws:
JsonParseException
-
fromJson
- Throws:
JsonParseException
-
fromJson
- Throws:
JsonParseException
-
fromJson
- Throws:
JsonParseException
-
toJson
-
toJson
-