OpenAIModerationResultCategoriesModel class final

Annotations
  • @immutable

Constructors

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

Properties

hashCode int
The hash code for this object.
no setteroverride
hate bool
The hate category.
final
hateAndThreatening bool
The hate and threatening category.
final
isHate bool
Whether hate is detected or not.
no setter
isHateAndThreatening bool
Whether hate and threatening is detected or not.
no setter
isNotSafe bool
Whether the moderation request is not safe or not.
no setter
isSafe bool
Whether the moderation request is safe or not.
no setter
isSelfHarm bool
Whether self harm is detected or not.
no setter
isSexual bool
Whether sexual is detected or not.
no setter
isSexualAndMinors bool
Whether sexual and minors is detected or not.
no setter
isViolence bool
Whether violence is detected or not.
no setter
isViolenceAndGraphic bool
Whether violence and graphic is detected or not.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfHarm bool
The self harm category.
final
sexual bool
The sexual category.
final
sexualAndMinors bool
The sexual and minors category.
final
violence bool
The violence category.
final
violenceAndGraphic bool
The violence and graphic category.
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 OpenAIModerationResultCategoriesModel other) bool
The equality operator.
override