Class CdoSnapshotStateTypeAdapter
java.lang.Object
org.javers.core.json.JsonTypeAdapterTemplate<CdoSnapshotState>
org.javers.core.json.typeadapter.commit.CdoSnapshotStateTypeAdapter
- All Implemented Interfaces:
AbstractJsonTypeAdapter,JsonTypeAdapter<CdoSnapshotState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElementtoJson(CdoSnapshotState snapshotState, com.google.gson.JsonSerializationContext context) Methods inherited from class org.javers.core.json.JsonTypeAdapterTemplate
getValueTypes
-
Constructor Details
-
CdoSnapshotStateTypeAdapter
public CdoSnapshotStateTypeAdapter()
-
-
Method Details
-
getValueType
- Specified by:
getValueTypein classJsonTypeAdapterTemplate<CdoSnapshotState>
-
fromJson
public CdoSnapshotState fromJson(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext jsonDeserializationContext) - Parameters:
json- not null and not JsonNulljsonDeserializationContext- use it to invoke default deserialization on the specified object
-
toJson
public com.google.gson.JsonElement toJson(CdoSnapshotState snapshotState, com.google.gson.JsonSerializationContext context) - Parameters:
snapshotState- not nullcontext- use it to invoke default serialization on the specified object
-