RealtimeTranslationClientSecretCreateResponse class

Response from creating a translation client secret.

Annotations
  • @immutable

Constructors

RealtimeTranslationClientSecretCreateResponse({required String value, required int expiresAt, required RealtimeTranslationSession session})
Creates a RealtimeTranslationClientSecretCreateResponse.
const
RealtimeTranslationClientSecretCreateResponse.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

expiresAt int
Expiration timestamp (Unix epoch seconds).
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session RealtimeTranslationSession
The created translation session.
final
value String
The client secret value (starts with ek_).
final

Methods

copyWith({String? value, int? expiresAt, RealtimeTranslationSession? session}) RealtimeTranslationClientSecretCreateResponse
Returns a copy with the given fields replaced.
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