diff --git a/app/lib/backend/schema/transcript_segment.dart b/app/lib/backend/schema/transcript_segment.dart index 526ea1acc8..4917366ef3 100644 --- a/app/lib/backend/schema/transcript_segment.dart +++ b/app/lib/backend/schema/transcript_segment.dart @@ -67,7 +67,7 @@ class TranscriptSegment { // Factory constructor to create a new Message instance from a map factory TranscriptSegment.fromJson(Map json) { return TranscriptSegment( - id: json['id'] as String, + id: (json['id'] ?? '') as String, text: json['text'] as String, speaker: (json['speaker'] ?? 'SPEAKER_00') as String, isUser: (json['is_user'] ?? false) as bool,