DropdownModel.fromJson constructor
Implementation
factory DropdownModel.fromJson(Map<String, dynamic> json) {
return DropdownModel(
id: json["_id"] ?? "",
text: json["text"] ?? json["name"],
urlImage: json["urlImage"],
subtitle: json["subtitle"],
name: json["name"],
query: json["query"] ?? "",
);
}