Continent.fromMap constructor

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

Implementation

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