Converts this config to a Map for serialization.
Map<String, dynamic> toMap() { return { 'enabled': enabled, 'context': context, }; }