toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "field_type": fieldType,
      "type_value": typeValue,
      "name": name,
      "label": label,
      "help_text": helpText,
      "placeholder": placeholder,
      "default_value": defaultValue,
      "required_field": requiredField,
      "unique_field": uniqueField,
      "format": format,
      "choices": choices?.map((x) => x.toJson()).toList(),
      ...properties,
    };