chatBskyNotificationPutPreferences function
Future<XRPCResponse<NotificationPutPreferencesOutput> >
chatBskyNotificationPutPreferences({
- ChatPreference? chat,
- ChatPreference? chatRequest,
- required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.
Implementation
Future<XRPCResponse<NotificationPutPreferencesOutput>>
chatBskyNotificationPutPreferences({
ChatPreference? chat,
ChatPreference? chatRequest,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.chatBskyNotificationPutPreferences,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
if (chat != null) 'chat': chat.toJson(),
if (chatRequest != null) 'chatRequest': chatRequest.toJson(),
},
to: const NotificationPutPreferencesOutputConverter().fromJson,
);