toJson method

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

Serialize this component to a JSON object.

Implementation

@override
Map<String, dynamic> toJson () {
  return {
    'type': type?.value,
    'custom_id': _customId,
    'placeholder': _placeholder,
    'min_values': _minValues,
    'max_values': _maxValues,
    'disabled': _disabled,
  };
}