Class DurationTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<Duration>
com.sap.cloud.sdk.datamodel.odata.client.adapter.DurationTypeAdapter
GSON type adapter for parsing and serialization of
Duration
.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
DurationTypeAdapter
public DurationTypeAdapter()
-
-
Method Details
-
read
For internal use only by data model classes- Specified by:
read
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-
write
public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable Duration entityValue) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-