toJson method

Map<String, dynamic> toJson()
inherited

Serialize this component to a JSON object.

Implementation

Map<String, dynamic> toJson () => {
  'label': _label,
  'type': ComponentType.textInput.value,
  'style': _style.value,
  'required': _required,
  'custom_id': _customId,
  'min_length': _minLength,
  'max_length': _maxLength,
  'placeholder': _placeholder
};