export default class InviteChannel {
/**
* Creates a new InviteChannel instance from the provider parameters.
*
* @constructor InviteChannel
*
* @param {Object} channelMap - Invite channel parameters
* @param {any} channelMap.providerId - ID
* @param {any} channelMap.name - Name
* @param {any} channelMap.iconUrl - Icon URL
* @param {any} channelMap.displayOrder - Order in list
*/
constructor(channelMap) {
this.id = channelMap.providerId || null;
this.name = channelMap.name || null;
this.iconUrl = channelMap.iconUrl || null;
this.displayOrder = channelMap.displayOrder || null;
Object.freeze(this);
}
}