toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

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