NotificationDeclarationRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const NotificationDeclarationRecord({
  1. @Default('app.bsky.notification.declaration') String $type,
  2. @NotificationDeclarationAllowSubscriptionsConverter() required NotificationDeclarationAllowSubscriptions allowSubscriptions,
  3. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory NotificationDeclarationRecord({
  @Default('app.bsky.notification.declaration') String $type,

  /// A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.
  @NotificationDeclarationAllowSubscriptionsConverter()
  required NotificationDeclarationAllowSubscriptions allowSubscriptions,

  Map<String, dynamic>? $unknown,
}) = _NotificationDeclarationRecord;