Map<String, dynamic> toJson() { return { 'experimentData': experimentData.map((key, value) => MapEntry(key, value.toJson())), 'experimentUserType': experimentUserType, 'timestamp': timestamp, }; }