toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts to JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  'type': type,
  if (createResponse != null) 'create_response': createResponse,
  if (idleTimeoutMs != null) 'idle_timeout_ms': idleTimeoutMs,
  if (interruptResponse != null) 'interrupt_response': interruptResponse,
  if (prefixPaddingMs != null) 'prefix_padding_ms': prefixPaddingMs,
  if (silenceDurationMs != null) 'silence_duration_ms': silenceDurationMs,
  if (threshold != null) 'threshold': threshold,
};