ReporterStats class abstract

Available extensions
Annotations
  • @freezed

Constructors

ReporterStats.new({@Default('tools.ozone.moderation.defs#reporterStats') String $type, required String did, required int accountReportCount, required int recordReportCount, required int reportedAccountCount, required int reportedRecordCount, required int takendownAccountCount, required int takendownRecordCount, required int labeledAccountCount, required int labeledRecordCount, Map<String, dynamic>? $unknown})
const
factory
ReporterStats.fromJson(Map<String, Object?> json)
factory

Properties

$type String
no setterinherited
$unknown Map<String, dynamic>?
no setterinherited
accountReportCount int
The total number of reports made by the user on accounts.
no setterinherited
copyWith → $ReporterStatsCopyWith<ReporterStats>
Create a copy of ReporterStats with the given fields replaced by the non-null parameter values.
no setterinherited
did String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
labeledAccountCount int
The total number of accounts labeled as a result of the user's reports.
no setterinherited
labeledRecordCount int
The total number of records labeled as a result of the user's reports.
no setterinherited
recordReportCount int
The total number of reports made by the user on records.
no setterinherited
reportedAccountCount int
The total number of accounts reported by the user.
no setterinherited
reportedRecordCount int
The total number of records reported by the user.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
takendownAccountCount int
The total number of accounts taken down as a result of the user's reports.
no setterinherited
takendownRecordCount int
The total number of records taken down as a result of the user's reports.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ReporterStats value)) → TResult

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ReporterStats value)?) → TResult?

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ReporterStats value)?, {required TResult orElse()}) → TResult

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map<String, dynamic>? $unknown)?, {required TResult orElse()}) → TResult

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ReporterStats to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map<String, dynamic>? $unknown)) → TResult

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map<String, dynamic>? $unknown)?) → TResult?

Available on ReporterStats, provided by the ReporterStatsPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

validate(Map<String, dynamic> object) bool

Constants

knownProps → const List<String>