ModEventReport constructor

  1. @JsonSerializable(includeIfNull: false)
const ModEventReport({
  1. @Default(toolsOzoneModerationDefsModEventReport) @JsonKey(name: r'$type') String $type,
  2. String? comment,
  3. @Default(false) bool isReporterMuted,
  4. @UReasonTypeConverter() required UReasonType reportType,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

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

  /// Set to true if the reporter was muted from reporting at the time
  /// of the event. These reports won't impact the reviewState of the
  /// subject.
  @Default(false) bool isReporterMuted,
  @UReasonTypeConverter() required UReasonType reportType,

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