NameDayData.fromJson constructor
Implementation
factory NameDayData.fromJson(Map<String, dynamic> json) {
int day = json["day"];
int month = json["month"];
List<String> name = json["name"].toString().split(',');
String countryCode = json["countryCode"];
String countryName = json["countryName"];
return NameDayData(
day: day,
month: month,
name: name,
countryCode: countryCode,
countryName: countryName);
}