ModerationRequest class
Request for content moderation
Constructors
- ModerationRequest.new({required dynamic input, String? model})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → dynamic
-
The input text to classify
final
- model → String?
-
Two content moderations models are available: text-moderation-stable and text-moderation-latest.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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