OpenAIModerationResultScoresModel class final

This class is used to represent an OpenAI moderation job result scores.

Annotations
  • @immutable

Constructors

OpenAIModerationResultScoresModel({required double hate, required double hateAndThreatening, required double selfHarm, required double sexual, required double sexualAndMinors, required double violence, required double violenceAndGraphic})
This class is used to represent an OpenAI moderation job result scores.
const
OpenAIModerationResultScoresModel.fromMap(Map<String, dynamic> json)
This method is used to convert a Map<String, dynamic> object to a OpenAIModerationResultScoresModel object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
hate double
The hate score of the moderation job.
final
hateAndThreatening double
The hate and threatening score of the moderation job.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfHarm double
The self harm score of the moderation job.
final
sexual double
The sexual score of the moderation job.
final
sexualAndMinors double
The sexual and minors score of the moderation job.
final
violence double
The violence score of the moderation job.
final
violenceAndGraphic double
The violence and graphic score of the moderation job.
final

Methods

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

Operators

operator ==(covariant OpenAIModerationResultScoresModel other) bool
The equality operator.
override