Map<String, dynamic> toJson() { final segmentNumber = this.segmentNumber; final totalSegments = this.totalSegments; return { 'SegmentNumber': segmentNumber, 'TotalSegments': totalSegments, }; }