TranslateRequestModel class sealed

Annotations
  • @freezed

Constructors

TranslateRequestModel.new({required List<String> q, required String target, String? source, @Default('text') String format, @Default('base') String model})
const
factory
TranslateRequestModel.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $TranslateRequestModelCopyWith<TranslateRequestModel>
no setterinherited
format String
The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
model String
The model type requested for this translation. Valid values are listed in public documentation.
no setterinherited
q List<String>
The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.
no setterinherited
target String
The language to use for translation of the input text, set to one of the language codes listed in Language Support.
no setterinherited

Methods

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

Operators

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