toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chatNotificationSettings',
if (extra != null) '@extra': extra,
'use_default_mute_for': use_default_mute_for,
'mute_for': mute_for,
'use_default_sound': use_default_sound,
'sound_id': sound_id,
'use_default_show_preview': use_default_show_preview,
'show_preview': show_preview,
'use_default_mute_stories': use_default_mute_stories,
'mute_stories': mute_stories,
'use_default_story_sound': use_default_story_sound,
'story_sound_id': story_sound_id,
'use_default_show_story_sender': use_default_show_story_sender,
'show_story_sender': show_story_sender,
'use_default_disable_pinned_message_notifications':
use_default_disable_pinned_message_notifications,
'disable_pinned_message_notifications':
disable_pinned_message_notifications,
'use_default_disable_mention_notifications':
use_default_disable_mention_notifications,
'disable_mention_notifications': disable_mention_notifications
};
}