UTextFieldConfig.fromMap constructor

UTextFieldConfig.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UTextFieldConfig.fromMap(Map<String, dynamic> json) => UTextFieldConfig(
  type: TagTextFieldType.values.firstWhere((TagTextFieldType e) => e.number == json["type"], orElse: () => TagTextFieldType.text),
  minLength: json["minLength"],
  maxLength: json["maxLength"],
);