toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "notification_group_id": notificationGroupId,
    "type": type.toJson(),
    "chat_id": chatId,
    "notification_settings_chat_id": notificationSettingsChatId,
    "notification_sound_id": notificationSoundId,
    "total_count": totalCount,
    "added_notifications": addedNotifications.map((i) => i.toJson()).toList(),
    "removed_notification_ids": removedNotificationIds.map((i) => i).toList(),
  };
}