toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
  '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': addedNotifications
      .map((item) => item.toJson())
      .toList(),
  'removed_notification_ids': removedNotificationIds
      .map((item) => item)
      .toList(),
  '@type': constructor,
};