Class JsonStringAdapter
java.lang.Object
dev.drtheo.autojson.adapter.string.JsonStringAdapter
- All Implemented Interfaces:
JsonAdapter<Object,,String> JsonContext,SchemaHolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.drtheo.autojson.adapter.JsonAdapter
fromJson, toJsonMethods inherited from interface dev.drtheo.autojson.adapter.JsonContext
schema, schemaHolder
-
Field Details
-
auto
-
-
Constructor Details
-
JsonStringAdapter
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceJsonAdapter<Object,String> - Type Parameters:
T- the type of the object to serialize.- Parameters:
obj- the object to serialize.type- the type to serialize via.- Returns:
- the serialized object.
-
toJson
-
fromJson
- Specified by:
fromJsonin interfaceJsonAdapter<Object,String> - Type Parameters:
R- the type to deserialize to.- Parameters:
object- the object to deserialize.clazz- the type to deserialize via.- Returns:
- The deserialized object.
-
auto
- Specified by:
autoin interfaceJsonContext- Returns:
- The
AutoJSONinstance used by the context.
-