DropdownModel.fromJson constructor

DropdownModel.fromJson(
  1. Map<String, dynamic> json
)

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"] ?? "",
  );
}