Country.fromMap constructor

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

Implementation

factory Country.fromMap(Map<String, dynamic> map) {
  return Country(
    name: map['name'].toString(),
    code: map['code'].toString(),
  );
}