toJson method
Converts to JSON, injecting 'type': 'transcription' on the embedded
session if the caller didn't set it explicitly.
Implementation
Map<String, dynamic> toJson() {
final sessionJson = session.toJson();
sessionJson['type'] ??= 'transcription';
return {
if (expiresAfter != null) 'expires_after': expiresAfter!.toJson(),
'session': sessionJson,
};
}