TranslateTextRequest class Null safety

The request message for synchronous translation.


TranslateTextRequest({List<String>? contents, TranslateTextGlossaryConfig? glossaryConfig, Map<String, String>? labels, String? mimeType, String? model, String? sourceLanguageCode, String? targetLanguageCode})
TranslateTextRequest.fromJson(Map _json)


contents List<String>?
The content of the input in string format. [...]
read / write
glossaryConfig TranslateTextGlossaryConfig?
Glossary to be applied. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
labels Map<String, String>?
The labels with user-defined metadata for the request. [...]
read / write
mimeType String?
The format of the source text, for example, "text/html", "text/plain". [...]
read / write
model String?
The model type requested for this translation. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sourceLanguageCode String?
The BCP-47 language code of the input text if known, for example, "en-US" or "sr-Latn". [...]
read / write
targetLanguageCode String?
The BCP-47 language code to use for translation of the input text, set to one of the language codes listed in Language Support. [...]
read / write


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


operator ==(Object other) bool
The equality operator. [...]