TranslationResponse class
The response data returned from translating text.
Constructors
-
TranslationResponse(TranslationResponseData responseData, bool? quotaFinished, bool? mtLangSupport, String responseDetails, int responseStatus, int? responderId, int? exceptionCode, List<
TranslationMatch> matches) -
TranslationResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- exceptionCode → int?
-
The exception code of the response.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
matches
→ List<
TranslationMatch> -
The human contributed matches returned from translating text.
final
- mtLangSupport → bool?
-
Whether the use of machine translation is enabled.
final
- quotaFinished → bool?
-
Whether the maximum character count usage per day has been met.
final
- responderId → int?
-
The ID of the responder.
final
- responseData → TranslationResponseData
-
The response data returned from translating text. The match accuracy
and the machine translated text are found here.
final
- responseDetails → String
-
Additional details about the response.
final
- responseStatus → int
-
The status code of the response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited