diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index 38bd8fe3..ebfe1255 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -3840,11 +3840,11 @@ class UserStatusClient { @JsonSerializable() class NotificationsPushNotificationDecryptedSubject { NotificationsPushNotificationDecryptedSubject({ - required this.nid, - required this.app, - required this.subject, - required this.type, - required this.id, + this.nid, + this.app, + this.subject, + this.type, + this.id, this.delete, this.deleteAll, }); @@ -3852,15 +3852,15 @@ class NotificationsPushNotificationDecryptedSubject { factory NotificationsPushNotificationDecryptedSubject.fromJson(Map json) => _$NotificationsPushNotificationDecryptedSubjectFromJson(json); - final int nid; + final int? nid; - final String app; + final String? app; - final String subject; + final String? subject; - final String type; + final String? type; - final String id; + final String? id; final bool? delete; diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart index 8ff50a00..72d5fd6b 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart @@ -1627,11 +1627,11 @@ Map _$UserStatusPredefinedStatusesToJson(UserStatusPredefinedSt NotificationsPushNotificationDecryptedSubject _$NotificationsPushNotificationDecryptedSubjectFromJson( Map json) => NotificationsPushNotificationDecryptedSubject( - nid: json['nid'] as int, - app: json['app'] as String, - subject: json['subject'] as String, - type: json['type'] as String, - id: json['id'] as String, + nid: json['nid'] as int?, + app: json['app'] as String?, + subject: json['subject'] as String?, + type: json['type'] as String?, + id: json['id'] as String?, delete: json['delete'] as bool?, deleteAll: json['delete-all'] as bool?, ); diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.json b/packages/nextcloud/lib/src/nextcloud.openapi.json index 30b87fad..f08ce497 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.json +++ b/packages/nextcloud/lib/src/nextcloud.openapi.json @@ -1599,13 +1599,6 @@ }, "NotificationsPushNotificationDecryptedSubject": { "type": "object", - "required": [ - "nid", - "app", - "subject", - "type", - "id" - ], "properties": { "nid": { "type": "integer" diff --git a/specs/notifications.json b/specs/notifications.json index 62b03678..1684f4c0 100644 --- a/specs/notifications.json +++ b/specs/notifications.json @@ -307,13 +307,6 @@ }, "NotificationsPushNotificationDecryptedSubject": { "type": "object", - "required": [ - "nid", - "app", - "subject", - "type", - "id" - ], "properties": { "nid": { "type": "integer"