countryDataToJson function

String countryDataToJson(
  1. List<CountryData> data
)

Implementation

String countryDataToJson(List<CountryData> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));