Country.fromJson constructor

Country.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Country.fromJson(Map<String, dynamic> json)
    : this.code = json['code'].toString(),
      this.code2 = ifNullReturnEmpty(json['code2']),
      this.name = ifNullReturnEmpty(json['name']),
      this.continent = ifNullReturnEmpty(json['continent']),
      this.region = ifNullReturnEmpty(json['region']);