toJson method

Map<String, dynamic> toJson()

Converts this entry to the JSON-compatible map expected by native iOS.

Implementation

Map<String, dynamic> toJson() {
  return {
    'category': category.toJsonValue(),
    'mode': mode.toJsonValue(),
    'options': options.map((option) => option.toJsonValue()).toList(),
    'preferredInput': preferredInput.toJsonValue(),
  };
}