Class ChartJsonSerializationContext
java.lang.Object
io.jmix.charts.widget.amcharts.serialization.ChartJsonSerializationContext
- All Implemented Interfaces:
com.google.gson.JsonSerializationContext
public class ChartJsonSerializationContext
extends Object
implements com.google.gson.JsonSerializationContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChartModelImpl
static final String
static final String
static final String
static final String
protected com.google.gson.Gson
-
Constructor Summary
ConstructorDescriptionChartJsonSerializationContext
(com.google.gson.Gson gson, ChartModelImpl chartModel, Function<DataItem, String> itemKeyMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
com.google.gson.JsonElement
com.google.gson.JsonElement
-
Field Details
-
DEFAULT_JS_DATE_FORMAT
- See Also:
-
DEFAULT_DATE_FORMAT
- See Also:
-
DEFAULT_TIME_FORMAT
- See Also:
-
DEFAULT_DATE_TIME_FORMAT
- See Also:
-
gson
protected com.google.gson.Gson gson -
chartModel
-
itemKeyMapper
-
-
Constructor Details
-
ChartJsonSerializationContext
public ChartJsonSerializationContext(com.google.gson.Gson gson, ChartModelImpl chartModel, Function<DataItem, String> itemKeyMapper)
-
-
Method Details
-
serialize
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializationContext
-
serialize
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializationContext
-
getChartModel
-
getItemKeyMapper
-
getProperties
-
getSegmentFields
-
addField
-