Class HookSettings

    • Method Detail

      • settings

        public abstract com.google.gson.JsonElement settings()
      • of

        public static HookSettings of​(com.google.gson.JsonElement settings)
        Create a HookSettings instance from the passed JsonElement. Method is safe for client use.
        Parameters:
        settings - JsonElement representing HookSettings.
        Returns:
        HookSettings
      • of

        public static HookSettings of​(Map settings)
        Create a HookSettings instance from the passed Map. Method is safe for client use.
        Parameters:
        settings - Map representing HookSettings.
        Returns:
        HookSettings
      • create

        public static HookSettings create​(com.google.gson.JsonElement settings,
                                          List<Error> errors)
        Method used internally to create a HookSettings object and NOT meant for client use.
        Parameters:
        settings - possible JsonElement representing HookSettings.
        errors - possible list of Error's.
        Returns:
        HookSettings