Map<String, dynamic> toMap() { return { 'enabled': enabled, 'maxItems': maxItems, 'maxSize': maxSize, 'flushInterval': flushInterval, }; }