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