code: @SuppressWarnings("unchecked")
    public static <T extends ComponentConfig<T>> T createComponent(JsonObject config) {
      return (T) serializer.deserializeObject(config, ComponentConfig.class);
    }
docs: Creates a component configuration from json.
  
  @param config A json component configuration.
  @return A component configuration.