ModEventTakedown constructor

  1. @JsonSerializable(includeIfNull: false)
const ModEventTakedown({
  1. @Default(toolsOzoneModerationDefsModEventTakedown) @JsonKey(name: r'$type') String $type,
  2. String? comment,
  3. @Default(0) int durationInHours,
  4. @Default(false) bool acknowledgeAccountSubjects,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ModEventTakedown({
  /// The unique namespace for this lex object.
  ///
  /// `tools.ozone.moderation.defs#modEventTakedown`
  @Default(toolsOzoneModerationDefsModEventTakedown)
  @JsonKey(name: r'$type')
  String $type,
  String? comment,

  /// Indicates how long the takedown should be in effect before
  /// automatically expiring.
  @Default(0) int durationInHours,

  /// If true, all other reports on content authored by this account
  /// will be resolved (acknowledged).
  @Default(false) bool acknowledgeAccountSubjects,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ModEventTakedown;