InputAudioBufferTimeoutTriggeredEvent.fromJson constructor

InputAudioBufferTimeoutTriggeredEvent.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory InputAudioBufferTimeoutTriggeredEvent.fromJson(Map<String, dynamic> j) => InputAudioBufferTimeoutTriggeredEvent(
      eventId: j['event_id'] as String,
      audioStartMs: (j['audio_start_ms'] as num).toInt(),
      audioEndMs: (j['audio_end_ms'] as num).toInt(),
      itemId: j['item_id'] as String,
    );