Package ru.moysklad.remap_1_2.utils.json
Class DocumentAttributeSerializer
- java.lang.Object
-
- ru.moysklad.remap_1_2.utils.json.DocumentAttributeSerializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<DocumentAttribute>,com.google.gson.JsonSerializer<DocumentAttribute>
public class DocumentAttributeSerializer extends Object implements com.google.gson.JsonSerializer<DocumentAttribute>, com.google.gson.JsonDeserializer<DocumentAttribute>
-
-
Constructor Summary
Constructors Constructor Description DocumentAttributeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentAttributedeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(DocumentAttribute src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(DocumentAttribute src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<DocumentAttribute>
-
deserialize
public DocumentAttribute deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<DocumentAttribute>- Throws:
com.google.gson.JsonParseException
-
-