toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "label": label,
  "value": value,
  "rejectionReason": rejectionReason,
  "text1": text1,
  "type": type.number,
  "required": required,
  "key": key,
  "textFieldConfig": textFieldConfig?.toMap(),
  "fileConfig": fileConfig?.toMap(),
  "dropDownConfig": dropDownConfig?.toMap(),
  "options": options == null ? null : List<dynamic>.from(options!.map((dynamic x) => x.toMap())),
};