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'],
  sound: json['sound'],
  showPreview: json['show_preview'],
  disablePinnedMessageNotifications: json['disable_pinned_message_notifications'],
  disableMentionNotifications: json['disable_mention_notifications'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);