Map<String, dynamic> toJson() { return <String, dynamic>{ 'category': category.name, 'options': options.map((e) => e.name).toList(), }; }