Report constructor
- @JsonSerializable(includeIfNull: false)
const
Report(
{ - required String id,
- required ReportCategory category,
- List<String>? statusIds,
- List<String>? ruleIds,
- @JsonKey(name: 'target_account') required Account account,
- @JsonKey(name: 'forwarded') required bool isForwarded,
- @JsonKey(name: 'action_taken') required bool isActionTaken,
- DateTime? actionTakenAt,
- required DateTime createdAt,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Report({
/// The ID of the report in the database.
required String id,
/// The generic reason for the report.
required ReportCategory category,
/// The reason for the report.
required String comment,
/// The domain name of the instance.
List<String>? statusIds,
/// The domain name of the instance.
List<String>? ruleIds,
/// The account that was reported.
@JsonKey(name: 'target_account') required Account account,
/// Whether the report was forwarded to a remote domain.
@JsonKey(name: 'forwarded') required bool isForwarded,
/// Whether an action was taken yet.
@JsonKey(name: 'action_taken') required bool isActionTaken,
/// When an action was taken against the report.
DateTime? actionTakenAt,
/// When the report was created.
required DateTime createdAt,
}) = _Report;