Data.fromMap constructor

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

Implementation

factory Data.fromMap(Map<String, dynamic> json) => Data(
  countries: json["countries"] == null ? [] : List<Country>.from(json["countries"]!.map((x) => Country.fromMap(x))),
);