Class ComponentStyleSerializer

java.lang.Object
net.md_5.bungee.chat.ComponentStyleSerializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ComponentStyle>, com.google.gson.JsonSerializer<ComponentStyle>

public class ComponentStyleSerializer extends Object implements com.google.gson.JsonSerializer<ComponentStyle>, com.google.gson.JsonDeserializer<ComponentStyle>
  • Constructor Details

    • ComponentStyleSerializer

      public ComponentStyleSerializer()
  • Method Details

    • deserialize

      public ComponentStyle deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ComponentStyle>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(ComponentStyle src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<ComponentStyle>