Word.fromJson constructor

Word.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Word.fromJson(Map<String, dynamic> json) => Word(
      text: json['text'] as String,
      start: (json['start'] as num?)?.toDouble() ?? 0.0,
      end: (json['end'] as num?)?.toDouble() ?? 0.0,
      type: json['type'] as String?,
      logprob: (json['logprob'] as num?)?.toDouble(),
      speakerId: json['speaker_id'] as String?,
    );