toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'mandatory': mandatory,
'isMultiple': isMultiple,
'description': description,
'placeholder': placeholder,
'length': length,
/* bool? mandatory;
int? maxAllowed;
int? minAllowed;
DisplayMode? displayMode;
bool? isMultiple;
SelectPlusValueMode? selectPlusValueType;
String? unit;
String? placeholder;
int? minimumInputLines;
String? description;
String? imgUrl;
String? imgDescription;
String? minValueLabel;
String? maxValueLabel;
// will overide boolean labels
String? nullBoolLabel;
String? falseBoolLabel;
String? trueBoolLabel;
//select, radio styling
//Possible values: button, check (to code), input (to code)
String? selectorDisplayMode;
String? ratingDisplayMode;
bool? hasOtherOption; */
};
}