Class CommandValueSerializer

java.lang.Object
dev.digiried.wattpilot.commands.CommandValueSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<CommandValue<?>>

public class CommandValueSerializer extends Object implements com.google.gson.JsonSerializer<CommandValue<?>>
JSON serializer for CommandValue.
Author:
Florian Hotze - Initial contribution
  • Constructor Details

    • CommandValueSerializer

      public CommandValueSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(CommandValue<?> commandValue, Type type, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<CommandValue<?>>