toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson () {
  return {
    'type': type.value,
    'custom_id': customId,
    'options': options.map((option) => option.toJson()).toList(),
    'placeholder': placeholder,
    'min_values': minValues,
    'max_values': maxValues,
    'disabled': disabled,
  };
}