toJson method

  1. @override
Map<String, dynamic> toJson()

Serialize this component to a JSON object.

Implementation

@override
Map<String, dynamic> toJson () => {
  ...super.toJson(),
  'options': _options.map((option) => option.toJson()).toList(),
};