Class DataPointTypeJsonSerializer

  • All Implemented Interfaces:
    com.google.gson.JsonSerializer<li.pitschmann.knx.core.datapoint.DataPointType>

    public final class DataPointTypeJsonSerializer
    extends Object
    implements com.google.gson.JsonSerializer<li.pitschmann.knx.core.datapoint.DataPointType>
    Serializes the DataPointType to a JSON format using Gson
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(li.pitschmann.knx.core.datapoint.DataPointType dataPointType,
                                                     Type type,
                                                     com.google.gson.JsonSerializationContext jsonSerializationContext)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<li.pitschmann.knx.core.datapoint.DataPointType>