CaptionData.fromJson constructor
Implementation
factory CaptionData.fromJson(Map<String, dynamic> json) {
return CaptionData(
text: json['text'] ?? "",
speechEventType: json['speechEventType'] ?? "",
participantIdentity: json['participantIdentity'] ?? "",
language: json['language'] ?? "",
confidence: (json['confidence'] as num?)?.toDouble() ?? 0.0,
);
}