toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'label': _label,
    'placeholder': _placeholder,
    'required': _required,
    'min_length': _minLength,
    'max_length': _maxLength,
    'value': _defaultValue,
  };
}