Map<String, dynamic> toMap() { return { 'enabled': enabled, 'storage': storage?.toMap(), 'events': events?.toMap(), }; }