CountryModel.fromMap constructor

CountryModel.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory CountryModel.fromMap(Map<String, dynamic> map) {
  return CountryModel(
    id: map['_id'] ?? '',
    name: map['name'] ?? false,
  );
}