toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'scopeNotificationSettings',
    if (extra != null) '@extra': extra,
    'mute_for': mute_for,
    'sound_id': sound_id,
    'show_preview': show_preview,
    'use_default_mute_stories': use_default_mute_stories,
    'mute_stories': mute_stories,
    'story_sound_id': story_sound_id,
    'show_story_sender': show_story_sender,
    'disable_pinned_message_notifications':
        disable_pinned_message_notifications,
    'disable_mention_notifications': disable_mention_notifications
  };
}