toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'notification_group_id': notificationGroupId,
  'type': type.toJson(),
  'chat_id': chatId,
  'notification_settings_chat_id': notificationSettingsChatId,
  'notification_sound_id': notificationSoundId.toString(),
  'total_count': totalCount,
  'added_notifications': [for (final e in addedNotifications) e.toJson()],
  'removed_notification_ids': removedNotificationIds,
};