toJson method

Map<String, dynamic> toJson()

Implementation

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