TranslateItemModel constructor

const TranslateItemModel({
  1. String? translatedText,
  2. String? detectedSourceLanguage,
  3. String? model,
})

Implementation

const factory TranslateItemModel({
  /// Text translated into the target language.
  String? translatedText,

  /// The source language of the initial request, detected automatically, if
  /// no source language was passed within the initial request. If the
  /// source language was passed, auto-detection of the language will not
  /// occur and this field will be empty.
  String? detectedSourceLanguage,

  /// The `model` type used for this translation. Valid values are
  /// listed in public documentation. Can be different from requested `model`.
  /// Present only if specific model type was explicitly requested.
  String? model,
}) = _TranslateItemModel;