WhisperTranscribeSegment constructor

const WhisperTranscribeSegment({
  1. @JsonKey(name: 'from_ts', fromJson: WhisperTranscribeSegment._durationFromInt) required Duration fromTs,
  2. @JsonKey(name: 'to_ts', fromJson: WhisperTranscribeSegment._durationFromInt) required Duration toTs,
  3. required String text,
})

Implementation

const factory WhisperTranscribeSegment({
  @JsonKey(
    name: 'from_ts',
    fromJson: WhisperTranscribeSegment._durationFromInt,
  )
  required Duration fromTs,
  @JsonKey(
    name: 'to_ts',
    fromJson: WhisperTranscribeSegment._durationFromInt,
  )
  required Duration toTs,
  required String text,
}) = _WhisperTranscribeSegment;