models/notifications/NotificationCustomization.js

export default class NotificationCustomization {
    /**
     * Creates a new NotificationCustomization instance from the provider parameters.
     *
     * @constructor NotificationCustomization
     * @param {Object} customizationMap - Customization parameters
     * @param {string} [customizationMap.backgroundImage] - Background image URL
     * @param {string} [customizationMap.titleColor] - Title color
     * @param {string} [customizationMap.textColor] - Text color
     */
    constructor(customizationMap) {
        customizationMap = customizationMap || {};

        this.backgroundImage = customizationMap.backgroundImage || null;
        this.titleColor = customizationMap.titleColor || null;
        this.textColor = customizationMap.textColor || null;
    }


    /**
     * Create a new notification customization.
     *
     * @memberof NotificationCustomization
     * @return {NotificationCustomization} New instance.
     */
    static create() {
        return new NotificationCustomization();
    }
}