toJson method

Map<String, dynamic> toJson()

Implementation

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