ModEventView constructor

  1. @JsonSerializable(includeIfNull: false)
const ModEventView({
  1. @Default(toolsOzoneModerationDefsModEventView) @JsonKey(name: r'$type') String $type,
  2. required int id,
  3. @UModEventViewEventConverter() required UModEventViewEvent event,
  4. @UModEventViewSubjectConverter() required UModEventViewSubject subject,
  5. required List<String> subjectBlobCids,
  6. required String createdBy,
  7. required DateTime createdAt,
  8. String? creatorHandle,
  9. String? subjectHandle,
  10. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ModEventView({
  /// The unique namespace for this lex object.
  ///
  /// `tools.ozone.moderation.defs#modEventView`
  @Default(toolsOzoneModerationDefsModEventView)
  @JsonKey(name: r'$type')
  String $type,
  required int id,
  @UModEventViewEventConverter() required UModEventViewEvent event,
  @UModEventViewSubjectConverter() required UModEventViewSubject subject,
  required List<String> subjectBlobCids,
  required String createdBy,
  required DateTime createdAt,
  String? creatorHandle,
  String? subjectHandle,

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