Constructor and Description |
---|
FieldTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
serialize(CMAField field,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext context)
Serialize all fields for content types.
|
public com.google.gson.JsonElement serialize(CMAField field, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<CMAField>
field
- the content type field to be serializedtype
- the type to be used.context
- the json context to be used.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.