RealtimeTranslationError class

The error payload nested inside RealtimeTranslationErrorEvent.

Annotations
  • @immutable

Constructors

RealtimeTranslationError({required String type, required String message, String? code, String? eventId, String? param})
Creates a RealtimeTranslationError.
const
RealtimeTranslationError.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

code String?
Optional machine-readable error code.
final
eventId String?
Optional event id of the originating client event.
final
hashCode int
The hash code for this object.
no setteroverride
message String
Human-readable error message.
final
param String?
Optional related parameter name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Error category (e.g. 'invalid_request_error', 'server_error').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

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