ScopeNotificationSettings.fromJson constructor

ScopeNotificationSettings.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ScopeNotificationSettings.fromJson(Map<String, dynamic> json) =>
    ScopeNotificationSettings(
      muteFor: json['mute_for'],
      soundId: int.parse(json['sound_id']),
      showPreview: json['show_preview'],
      useDefaultMuteStories: json['use_default_mute_stories'],
      muteStories: json['mute_stories'],
      storySoundId: int.parse(json['story_sound_id']),
      showStorySender: json['show_story_sender'],
      disablePinnedMessageNotifications:
          json['disable_pinned_message_notifications'],
      disableMentionNotifications: json['disable_mention_notifications'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );