- All Implemented Interfaces:
com.google.gson.JsonSerializer<Volume>
public class VolumeSerializer
extends Object
implements com.google.gson.JsonSerializer<Volume>
Serialize the volume info for POST request.
- Since:
- v2.7
- Author:
- Eugene Strokin (https://github.com/strokine)
-
Constructor Summary
Constructors
-
Method Summary
com.google.gson.JsonElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
VolumeSerializer
public VolumeSerializer()
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Volume volume,
Type paramType,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize in interface com.google.gson.JsonSerializer<Volume>