TranslationResponseMessage class

Mirrors TranslationSession.Response.

Constructors

TranslationResponseMessage({required LanguageMessage sourceLanguage, required LanguageMessage targetLanguage, required String sourceText, required String targetText, List<TextSegmentMessage>? targetSegments, String? clientIdentifier})

Properties

clientIdentifier ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceLanguage ↔ LanguageMessage
getter/setter pair
sourceText ↔ String
getter/setter pair
targetLanguage ↔ LanguageMessage
getter/setter pair
targetSegments ↔ List<TextSegmentMessage>?
The runs of attributedTargetText, when the request was attributed.
getter/setter pair
targetText ↔ String
getter/setter pair

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → TranslationResponseMessage