AccountEvent constructor

  1. @JsonSerializable(includeIfNull: false)
const AccountEvent({
  1. @Default('tools.ozone.moderation.defs#accountEvent') String $type,
  2. String? comment,
  3. required bool active,
  4. @AccountEventStatusConverter() AccountEventStatus? status,
  5. required DateTime timestamp,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory AccountEvent({
  @Default('tools.ozone.moderation.defs#accountEvent') String $type,
  String? comment,

  /// Indicates that the account has a repository which can be fetched from the host that emitted this event.
  required bool active,
  @AccountEventStatusConverter() AccountEventStatus? status,
  required DateTime timestamp,

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