TranslateItemModel class sealed

Annotations
  • @freezed

Constructors

TranslateItemModel.new({String? translatedText, String? detectedSourceLanguage, String? model})
const
factory
TranslateItemModel.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $TranslateItemModelCopyWith<TranslateItemModel>
no setterinherited
detectedSourceLanguage String?
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.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
model String?
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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translatedText String?
Text translated into the target language.
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