class ColorSaver implements ElementTypeAdapter<Color> {

  @Override
  public Color deserialize(JsonElement json, JsonDeserializationContext context) throws JsonParseException {
    return Color.web(json.getAsString());
  }

}