ExtrasCountry.fromMap constructor

ExtrasCountry.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory ExtrasCountry.fromMap(Map<String, dynamic> json) => ExtrasCountry(
  regions: json["regions"] == null ? [] : List<PurpleRegion>.from(json["regions"]!.map((x) => PurpleRegion.fromMap(x))),
  id: json["id"],
  name: json["name"],
  code: json["code"],
  continent: json["continent"],
);