ContinentList.fromMap constructor

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

Implementation

factory ContinentList.fromMap(Map<String, dynamic> map) {
  return ContinentList(
    total: map['total'],
    continents: List<Continent>.from(
        map['continents'].map((p) => Continent.fromMap(p))),
  );
}