MutedWord constructor

  1. @JsonSerializable(includeIfNull: false)
const MutedWord({
  1. @Default('app.bsky.actor.defs#mutedWord') String $type,
  2. String? id,
  3. required String value,
  4. @MutedWordTargetConverter() required List<MutedWordTarget> targets,
  5. @MutedWordActorTargetConverter() MutedWordActorTarget? actorTarget,
  6. DateTime? expiresAt,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory MutedWord({
  @Default('app.bsky.actor.defs#mutedWord') String $type,
  String? id,

  /// The muted word itself.
  required String value,
  @MutedWordTargetConverter() required List<MutedWordTarget> targets,

  /// Groups of users to apply the muted word to. If undefined, applies to all users.
  @MutedWordActorTargetConverter() MutedWordActorTarget? actorTarget,

  /// The date and time at which the muted word will expire and no longer be applied.
  DateTime? expiresAt,

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