ModerationCategoryScores class

Confidence scores for each category

Constructors

ModerationCategoryScores.new({required double hate, required double hateThreatening, required double harassment, required double harassmentThreatening, required double selfHarm, required double selfHarmIntent, required double selfHarmInstructions, required double sexual, required double sexualMinors, required double violence, required double violenceGraphic})
const
ModerationCategoryScores.fromJson(Map<String, dynamic> json)
factory

Properties

harassment double
The score for "harassment" category
final
harassmentThreatening double
The score for "harassment/threatening" category
final
hashCode int
The hash code for this object.
no setterinherited
hate double
The score for "hate" category
final
hateThreatening double
The score for "hate/threatening" category
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfHarm double
The score for "self-harm" category
final
selfHarmInstructions double
The score for "self-harm/instructions" category
final
selfHarmIntent double
The score for "self-harm/intent" category
final
sexual double
The score for "sexual" category
final
sexualMinors double
The score for "sexual/minors" category
final
violence double
The score for "violence" category
final
violenceGraphic double
The score for "violence/graphic" category
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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