@Override
    public LabelColor deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
      final String colorName = StringUtil.toUpperCase(json.getAsString());
      if (colorName.isEmpty()) {
        return LabelColor.NO_COLOR;
      }
      try {
        return LabelColor.valueOf(colorName);
      }
      catch (IllegalArgumentException e) {
        return LabelColor.NO_COLOR;
      }
    }
@Override
    public LabelColor deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)