Package com.contentful.java.cma.gson
Class FieldTypeAdapter
- java.lang.Object
-
- com.contentful.java.cma.gson.FieldTypeAdapter
-
-
Constructor Summary
Constructors Constructor Description FieldTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElementserialize(CMAField field, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)Serialize all fields for content types.
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(CMAField field, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
Serialize all fields for content types.- Specified by:
serializein interfacecom.google.gson.JsonSerializer<CMAField>- Parameters:
field- the content type field to be serializedtype- the type to be used.context- the json context to be used.- Returns:
- a json object representing the field.
-
-