SubjectStatusView constructor
- @JsonSerializable(includeIfNull: false)
const
SubjectStatusView(
{ - @Default(toolsOzoneModerationDefsSubjectStatusView) @JsonKey(name: r'$type') String $type,
- required int id,
- @USubjectStatusViewSubjectConverter() required USubjectStatusViewSubject subject,
- List<String>? subjectBlobCids,
- String? subjectRepoHandle,
- required DateTime updatedAt,
- required DateTime createdAt,
- @USubjectReviewStateConverter() required USubjectReviewState reviewState,
- DateTime? muteUntil,
- DateTime? muteReportingUntil,
- String? lastReviewedBy,
- DateTime? lastReviewedAt,
- DateTime? lastReportedAt,
- DateTime? lastAppealedAt,
- @Default(false) bool takendown,
- @Default(false) bool appealed,
- DateTime? suspendUntil,
- List<String>? tags,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory SubjectStatusView({
/// The unique namespace for this lex object.
///
/// `tools.ozone.moderation.defs#subjectStatusView`
@Default(toolsOzoneModerationDefsSubjectStatusView)
@JsonKey(name: r'$type')
String $type,
required int id,
@USubjectStatusViewSubjectConverter()
required USubjectStatusViewSubject subject,
List<String>? subjectBlobCids,
String? subjectRepoHandle,
/// Timestamp referencing when the last update was made to the
/// moderation status of the subject
required DateTime updatedAt,
/// Timestamp referencing the first moderation status impacting event
/// was emitted on the subject
required DateTime createdAt,
@USubjectReviewStateConverter() required USubjectReviewState reviewState,
/// Sticky comment on the subject.
String? comment,
DateTime? muteUntil,
DateTime? muteReportingUntil,
String? lastReviewedBy,
DateTime? lastReviewedAt,
DateTime? lastReportedAt,
/// Timestamp referencing when the author of the subject appealed a
/// moderation action
DateTime? lastAppealedAt,
@Default(false) bool takendown,
/// True indicates that the a previously taken moderator action was
/// appealed against, by the author of the content. False indicates
/// last appeal was resolved by moderators.
@Default(false) bool appealed,
DateTime? suspendUntil,
List<String>? tags,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _SubjectStatusView;