City.fromJson constructor

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

Implementation

City.fromJson(Map<String, dynamic> json)
    : this.id = json['id'].toString(),
      this.name = ifNullReturnEmpty(json['name']),
      this.countryCode = ifNullReturnEmpty(json['country_code']),
      this.district = ifNullReturnEmpty(json['district']);