ChannelSettings.fromMap constructor

ChannelSettings.fromMap(
  1. Map map
)

Implementation

factory ChannelSettings.fromMap(Map<dynamic, dynamic> map) {
  return ChannelSettings(
    channelId: map['channelId'],
    importance: map['importance'],
    isCanBypassDnd: map['isCanBypassDnd'],
    isCanShowBadge: map['isCanShowBadge'],
    isShouldVibrate: map['isShouldVibrate'],
    isShouldShowLights: map['isShouldShowLights'],
  );
}