CustomDropDownModel.fromJson constructor

CustomDropDownModel.fromJson(
  1. Map<String, dynamic> json, {
  2. required String valueFindKey,
  3. required String idFindKey,
})

Implementation

factory CustomDropDownModel.fromJson(Map<String, dynamic> json,
        {required String valueFindKey, required String idFindKey}) =>
    CustomDropDownModel(
      valueDisplay: json[valueFindKey],
      id: json[idFindKey],
    );