ModEventLabel constructor

  1. @JsonSerializable(includeIfNull: false)
const ModEventLabel({
  1. @Default('tools.ozone.moderation.defs#modEventLabel') String $type,
  2. String? comment,
  3. required List<String> createLabelVals,
  4. required List<String> negateLabelVals,
  5. int? durationInHours,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ModEventLabel({
  @Default('tools.ozone.moderation.defs#modEventLabel') String $type,
  String? comment,
  required List<String> createLabelVals,
  required List<String> negateLabelVals,

  /// Indicates how long the label will remain on the subject. Only applies on labels that are being added.
  int? durationInHours,

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