Report class
- Annotations
-
- @freezed
Constructors
-
Report({required String id, required ReportCategory category, required String comment, 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}) -
constfactory
-
Report.fromJson(Map<
String, Object?> json) -
factory
Properties
- account → Account
-
The account that was reported.
no setterinherited
- actionTakenAt → DateTime?
-
When an action was taken against the report.
no setterinherited
- category → ReportCategory
-
The generic reason for the report.
no setterinherited
- comment → String
-
The reason for the report.
no setterinherited
-
copyWith
→ $ReportCopyWith<
Report> -
no setterinherited
- createdAt → DateTime
-
When the report was created.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of the report in the database.
no setterinherited
- isActionTaken → bool
-
Whether an action was taken yet.
no setterinherited
- isForwarded → bool
-
Whether the report was forwarded to a remote domain.
no setterinherited
-
ruleIds
→ List<
String> ? -
The domain name of the instance.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusIds
→ List<
String> ? -
The domain name of the instance.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited