UProcessField.fromMap constructor
UProcessField.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UProcessField.fromMap(Map<String, dynamic> json) => UProcessField(
label: json["label"],
value: json["value"],
rejectionReason: json["rejectionReason"],
text1: json["text1"],
type: TagFieldType.values.firstWhere((TagFieldType e) => e.number == json["type"], orElse: () => TagFieldType.text),
required: json["required"],
key: json["key"],
textFieldConfig: json["textFieldConfig"] == null ? null : UTextFieldConfig.fromMap(json["textFieldConfig"]),
fileConfig: json["fileConfig"] == null ? null : UFileConfig.fromMap(json["fileConfig"]),
dropDownConfig: json["dropDownConfig"] == null ? null : UDropDownConfig.fromMap(json["dropDownConfig"]),
options: json["options"] == null ? null : List<UOption>.from(json["options"].map((dynamic x) => UOption.fromMap(x))),
);