// ignore_for_file: camel_case_types // ignore_for_file: public_member_api_docs import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/content_string.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:universal_io/io.dart'; export 'package:dynamite_runtime/http_client.dart'; part 'notifications.openapi.g.dart'; class NotificationsResponse extends DynamiteResponse { NotificationsResponse( super.data, super.headers, ); @override String toString() => 'NotificationsResponse(data: $data, headers: $headers)'; } class NotificationsApiException extends DynamiteApiException { NotificationsApiException( super.statusCode, super.headers, super.body, ); static Future fromResponse(final HttpClientResponse response) async { String body; try { body = await response.body; } on FormatException { body = 'binary'; } return NotificationsApiException( response.statusCode, response.responseHeaders, body, ); } @override String toString() => 'NotificationsApiException(statusCode: $statusCode, headers: $headers, body: $body)'; } class NotificationsClient extends DynamiteClient { NotificationsClient( super.baseURL, { super.baseHeaders, super.userAgent, super.httpClient, super.cookieJar, super.authentications, }); NotificationsClient.fromClient(final DynamiteClient client) : super( client.baseURL, baseHeaders: client.baseHeaders, httpClient: client.httpClient, cookieJar: client.cookieJar, authentications: client.authentications, ); Future listNotifications() async { const path = '/ocs/v2.php/apps/notifications/api/v2/notifications'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); } else { throw Exception('Missing authentication for bearer or basic_auth'); } // coverage:ignore-end final response = await doRequest( 'get', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 200) { return _jsonSerializers.deserialize( await response.jsonBody, specifiedType: const FullType(NotificationsListNotifications), )! as NotificationsListNotifications; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future deleteAllNotifications() async { const path = '/ocs/v2.php/apps/notifications/api/v2/notifications'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else { throw Exception('Missing authentication for bearer'); } // coverage:ignore-end final response = await doRequest( 'delete', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 200) { return response.body; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future getNotification({required final int id}) async { var path = '/ocs/v2.php/apps/notifications/api/v2/notifications/{id}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); } else { throw Exception('Missing authentication for bearer or basic_auth'); } // coverage:ignore-end path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); final response = await doRequest( 'get', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 200) { return _jsonSerializers.deserialize( await response.jsonBody, specifiedType: const FullType(NotificationsGetNotification), )! as NotificationsGetNotification; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future deleteNotification({required final int id}) async { var path = '/ocs/v2.php/apps/notifications/api/v2/notifications/{id}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else { throw Exception('Missing authentication for bearer'); } // coverage:ignore-end path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); final response = await doRequest( 'delete', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 200) { return _jsonSerializers.deserialize( await response.jsonBody, specifiedType: const FullType(NotificationsEmptyOCS), )! as NotificationsEmptyOCS; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future registerDevice({ required final String pushTokenHash, required final String devicePublicKey, required final String proxyServer, }) async { const path = '/ocs/v2.php/apps/notifications/api/v2/push'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else { throw Exception('Missing authentication for bearer'); } // coverage:ignore-end queryParameters['pushTokenHash'] = pushTokenHash; queryParameters['devicePublicKey'] = devicePublicKey; queryParameters['proxyServer'] = proxyServer; final response = await doRequest( 'post', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 201) { return _jsonSerializers.deserialize( await response.jsonBody, specifiedType: const FullType(NotificationsPushServerRegistration), )! as NotificationsPushServerRegistration; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future removeDevice() async { const path = '/ocs/v2.php/apps/notifications/api/v2/push'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else { throw Exception('Missing authentication for bearer'); } // coverage:ignore-end final response = await doRequest( 'delete', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 202) { return response.body; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } Future sendAdminNotification({ required final String userId, required final String shortMessage, final String longMessage = '', }) async { var path = '/ocs/v2.php/apps/notifications/api/v2/admin_notifications/{userId}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); } else { throw Exception('Missing authentication for bearer'); } // coverage:ignore-end path = path.replaceAll('{userId}', Uri.encodeQueryComponent(userId)); queryParameters['shortMessage'] = shortMessage; if (longMessage != '') { queryParameters['longMessage'] = longMessage; } final response = await doRequest( 'post', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), headers, body, ); if (response.statusCode == 200) { return _jsonSerializers.deserialize( await response.jsonBody, specifiedType: const FullType(NotificationsEmptyOCS), )! as NotificationsEmptyOCS; } throw await NotificationsApiException.fromResponse(response); // coverage:ignore-line } } @BuiltValue(instantiable: false) abstract interface class NotificationsOCSMetaInterface { String get status; int get statuscode; String? get message; String? get totalitems; String? get itemsperpage; NotificationsOCSMetaInterface rebuild(final void Function(NotificationsOCSMetaInterfaceBuilder) updates); NotificationsOCSMetaInterfaceBuilder toBuilder(); } abstract class NotificationsOCSMeta implements NotificationsOCSMetaInterface, Built { factory NotificationsOCSMeta([final void Function(NotificationsOCSMetaBuilder)? b]) = _$NotificationsOCSMeta; // coverage:ignore-start const NotificationsOCSMeta._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsOCSMeta.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsOCSMetaSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsNotificationActionInterface { String get label; String get link; String get type; bool? get primary; NotificationsNotificationActionInterface rebuild( final void Function(NotificationsNotificationActionInterfaceBuilder) updates, ); NotificationsNotificationActionInterfaceBuilder toBuilder(); } abstract class NotificationsNotificationAction implements NotificationsNotificationActionInterface, Built { factory NotificationsNotificationAction([final void Function(NotificationsNotificationActionBuilder)? b]) = _$NotificationsNotificationAction; // coverage:ignore-start const NotificationsNotificationAction._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsNotificationAction.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsNotificationActionSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsNotificationInterface { @BuiltValueField(wireName: 'notification_id') int get notificationId; String get app; String get user; String get datetime; @BuiltValueField(wireName: 'object_type') String get objectType; @BuiltValueField(wireName: 'object_id') String get objectId; String get subject; String get message; String get link; String? get subjectRich; JsonObject? get subjectRichParameters; String? get messageRich; JsonObject? get messageRichParameters; String? get icon; bool? get shouldNotify; BuiltList get actions; NotificationsNotificationInterface rebuild(final void Function(NotificationsNotificationInterfaceBuilder) updates); NotificationsNotificationInterfaceBuilder toBuilder(); } abstract class NotificationsNotification implements NotificationsNotificationInterface, Built { factory NotificationsNotification([final void Function(NotificationsNotificationBuilder)? b]) = _$NotificationsNotification; // coverage:ignore-start const NotificationsNotification._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsNotification.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsNotificationSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsListNotifications_OcsInterface { NotificationsOCSMeta get meta; BuiltList get data; NotificationsListNotifications_OcsInterface rebuild( final void Function(NotificationsListNotifications_OcsInterfaceBuilder) updates, ); NotificationsListNotifications_OcsInterfaceBuilder toBuilder(); } abstract class NotificationsListNotifications_Ocs implements NotificationsListNotifications_OcsInterface, Built { factory NotificationsListNotifications_Ocs([final void Function(NotificationsListNotifications_OcsBuilder)? b]) = _$NotificationsListNotifications_Ocs; // coverage:ignore-start const NotificationsListNotifications_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsListNotifications_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsListNotificationsOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsListNotificationsInterface { NotificationsListNotifications_Ocs get ocs; NotificationsListNotificationsInterface rebuild( final void Function(NotificationsListNotificationsInterfaceBuilder) updates, ); NotificationsListNotificationsInterfaceBuilder toBuilder(); } abstract class NotificationsListNotifications implements NotificationsListNotificationsInterface, Built { factory NotificationsListNotifications([final void Function(NotificationsListNotificationsBuilder)? b]) = _$NotificationsListNotifications; // coverage:ignore-start const NotificationsListNotifications._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsListNotifications.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsListNotificationsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsGetNotification_OcsInterface { NotificationsOCSMeta get meta; NotificationsNotification get data; NotificationsGetNotification_OcsInterface rebuild( final void Function(NotificationsGetNotification_OcsInterfaceBuilder) updates, ); NotificationsGetNotification_OcsInterfaceBuilder toBuilder(); } abstract class NotificationsGetNotification_Ocs implements NotificationsGetNotification_OcsInterface, Built { factory NotificationsGetNotification_Ocs([final void Function(NotificationsGetNotification_OcsBuilder)? b]) = _$NotificationsGetNotification_Ocs; // coverage:ignore-start const NotificationsGetNotification_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsGetNotification_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsGetNotificationOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsGetNotificationInterface { NotificationsGetNotification_Ocs get ocs; NotificationsGetNotificationInterface rebuild( final void Function(NotificationsGetNotificationInterfaceBuilder) updates, ); NotificationsGetNotificationInterfaceBuilder toBuilder(); } abstract class NotificationsGetNotification implements NotificationsGetNotificationInterface, Built { factory NotificationsGetNotification([final void Function(NotificationsGetNotificationBuilder)? b]) = _$NotificationsGetNotification; // coverage:ignore-start const NotificationsGetNotification._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsGetNotification.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsGetNotificationSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsEmptyOCS_OcsInterface { NotificationsOCSMeta get meta; BuiltList get data; NotificationsEmptyOCS_OcsInterface rebuild(final void Function(NotificationsEmptyOCS_OcsInterfaceBuilder) updates); NotificationsEmptyOCS_OcsInterfaceBuilder toBuilder(); } abstract class NotificationsEmptyOCS_Ocs implements NotificationsEmptyOCS_OcsInterface, Built { factory NotificationsEmptyOCS_Ocs([final void Function(NotificationsEmptyOCS_OcsBuilder)? b]) = _$NotificationsEmptyOCS_Ocs; // coverage:ignore-start const NotificationsEmptyOCS_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsEmptyOCS_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsEmptyOCSOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsEmptyOCSInterface { NotificationsEmptyOCS_Ocs get ocs; NotificationsEmptyOCSInterface rebuild(final void Function(NotificationsEmptyOCSInterfaceBuilder) updates); NotificationsEmptyOCSInterfaceBuilder toBuilder(); } abstract class NotificationsEmptyOCS implements NotificationsEmptyOCSInterface, Built { factory NotificationsEmptyOCS([final void Function(NotificationsEmptyOCSBuilder)? b]) = _$NotificationsEmptyOCS; // coverage:ignore-start const NotificationsEmptyOCS._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsEmptyOCS.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsEmptyOCSSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsPushServerSubscriptionInterface { String get publicKey; String get deviceIdentifier; String get signature; String? get message; NotificationsPushServerSubscriptionInterface rebuild( final void Function(NotificationsPushServerSubscriptionInterfaceBuilder) updates, ); NotificationsPushServerSubscriptionInterfaceBuilder toBuilder(); } abstract class NotificationsPushServerSubscription implements NotificationsPushServerSubscriptionInterface, Built { factory NotificationsPushServerSubscription([final void Function(NotificationsPushServerSubscriptionBuilder)? b]) = _$NotificationsPushServerSubscription; // coverage:ignore-start const NotificationsPushServerSubscription._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsPushServerSubscription.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsPushServerSubscriptionSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsPushServerRegistration_OcsInterface { NotificationsOCSMeta get meta; NotificationsPushServerSubscription get data; NotificationsPushServerRegistration_OcsInterface rebuild( final void Function(NotificationsPushServerRegistration_OcsInterfaceBuilder) updates, ); NotificationsPushServerRegistration_OcsInterfaceBuilder toBuilder(); } abstract class NotificationsPushServerRegistration_Ocs implements NotificationsPushServerRegistration_OcsInterface, Built { factory NotificationsPushServerRegistration_Ocs([ final void Function(NotificationsPushServerRegistration_OcsBuilder)? b, ]) = _$NotificationsPushServerRegistration_Ocs; // coverage:ignore-start const NotificationsPushServerRegistration_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsPushServerRegistration_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsPushServerRegistrationOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsPushServerRegistrationInterface { NotificationsPushServerRegistration_Ocs get ocs; NotificationsPushServerRegistrationInterface rebuild( final void Function(NotificationsPushServerRegistrationInterfaceBuilder) updates, ); NotificationsPushServerRegistrationInterfaceBuilder toBuilder(); } abstract class NotificationsPushServerRegistration implements NotificationsPushServerRegistrationInterface, Built { factory NotificationsPushServerRegistration([final void Function(NotificationsPushServerRegistrationBuilder)? b]) = _$NotificationsPushServerRegistration; // coverage:ignore-start const NotificationsPushServerRegistration._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsPushServerRegistration.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsPushServerRegistrationSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsCapabilities_NotificationsInterface { @BuiltValueField(wireName: 'ocs-endpoints') BuiltList? get ocsEndpoints; BuiltList? get push; @BuiltValueField(wireName: 'admin-notifications') BuiltList? get adminNotifications; NotificationsCapabilities_NotificationsInterface rebuild( final void Function(NotificationsCapabilities_NotificationsInterfaceBuilder) updates, ); NotificationsCapabilities_NotificationsInterfaceBuilder toBuilder(); } abstract class NotificationsCapabilities_Notifications implements NotificationsCapabilities_NotificationsInterface, Built { factory NotificationsCapabilities_Notifications([ final void Function(NotificationsCapabilities_NotificationsBuilder)? b, ]) = _$NotificationsCapabilities_Notifications; // coverage:ignore-start const NotificationsCapabilities_Notifications._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsCapabilities_Notifications.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsCapabilitiesNotificationsSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsCapabilitiesInterface { NotificationsCapabilities_Notifications get notifications; NotificationsCapabilitiesInterface rebuild(final void Function(NotificationsCapabilitiesInterfaceBuilder) updates); NotificationsCapabilitiesInterfaceBuilder toBuilder(); } abstract class NotificationsCapabilities implements NotificationsCapabilitiesInterface, Built { factory NotificationsCapabilities([final void Function(NotificationsCapabilitiesBuilder)? b]) = _$NotificationsCapabilities; // coverage:ignore-start const NotificationsCapabilities._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsCapabilities.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsCapabilitiesSerializer; } @BuiltValue(instantiable: false) abstract interface class NotificationsNotificationDecryptedSubjectInterface { int? get nid; String? get app; String? get subject; String? get type; String? get id; bool? get delete; @BuiltValueField(wireName: 'delete-all') bool? get deleteAll; NotificationsNotificationDecryptedSubjectInterface rebuild( final void Function(NotificationsNotificationDecryptedSubjectInterfaceBuilder) updates, ); NotificationsNotificationDecryptedSubjectInterfaceBuilder toBuilder(); } abstract class NotificationsNotificationDecryptedSubject implements NotificationsNotificationDecryptedSubjectInterface, Built { factory NotificationsNotificationDecryptedSubject([ final void Function(NotificationsNotificationDecryptedSubjectBuilder)? b, ]) = _$NotificationsNotificationDecryptedSubject; // coverage:ignore-start const NotificationsNotificationDecryptedSubject._(); // coverage:ignore-end // coverage:ignore-start factory NotificationsNotificationDecryptedSubject.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$notificationsNotificationDecryptedSubjectSerializer; } // coverage:ignore-start final Serializers _serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(NotificationsListNotifications), NotificationsListNotifications.new) ..add(NotificationsListNotifications.serializer) ..addBuilderFactory(const FullType(NotificationsListNotifications_Ocs), NotificationsListNotifications_Ocs.new) ..add(NotificationsListNotifications_Ocs.serializer) ..addBuilderFactory(const FullType(NotificationsOCSMeta), NotificationsOCSMeta.new) ..add(NotificationsOCSMeta.serializer) ..addBuilderFactory(const FullType(NotificationsNotification), NotificationsNotification.new) ..add(NotificationsNotification.serializer) ..addBuilderFactory(const FullType(NotificationsNotificationAction), NotificationsNotificationAction.new) ..add(NotificationsNotificationAction.serializer) ..addBuilderFactory( const FullType(BuiltList, [FullType(NotificationsNotificationAction)]), ListBuilder.new, ) ..addBuilderFactory( const FullType(BuiltList, [FullType(NotificationsNotification)]), ListBuilder.new, ) ..addBuilderFactory(const FullType(NotificationsGetNotification), NotificationsGetNotification.new) ..add(NotificationsGetNotification.serializer) ..addBuilderFactory(const FullType(NotificationsGetNotification_Ocs), NotificationsGetNotification_Ocs.new) ..add(NotificationsGetNotification_Ocs.serializer) ..addBuilderFactory(const FullType(NotificationsEmptyOCS), NotificationsEmptyOCS.new) ..add(NotificationsEmptyOCS.serializer) ..addBuilderFactory(const FullType(NotificationsEmptyOCS_Ocs), NotificationsEmptyOCS_Ocs.new) ..add(NotificationsEmptyOCS_Ocs.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder.new) ..addBuilderFactory(const FullType(NotificationsPushServerRegistration), NotificationsPushServerRegistration.new) ..add(NotificationsPushServerRegistration.serializer) ..addBuilderFactory( const FullType(NotificationsPushServerRegistration_Ocs), NotificationsPushServerRegistration_Ocs.new, ) ..add(NotificationsPushServerRegistration_Ocs.serializer) ..addBuilderFactory(const FullType(NotificationsPushServerSubscription), NotificationsPushServerSubscription.new) ..add(NotificationsPushServerSubscription.serializer) ..addBuilderFactory(const FullType(NotificationsCapabilities), NotificationsCapabilities.new) ..add(NotificationsCapabilities.serializer) ..addBuilderFactory( const FullType(NotificationsCapabilities_Notifications), NotificationsCapabilities_Notifications.new, ) ..add(NotificationsCapabilities_Notifications.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), ListBuilder.new) ..addBuilderFactory( const FullType(NotificationsNotificationDecryptedSubject), NotificationsNotificationDecryptedSubject.new, ) ..add(NotificationsNotificationDecryptedSubject.serializer)) .build(); Serializers get notificationsSerializers => _serializers; final Serializers _jsonSerializers = (_serializers.toBuilder() ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); T deserializeNotifications(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; Object? serializeNotifications(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); // coverage:ignore-end