GeoPoiLocation.fromMap constructor

GeoPoiLocation.fromMap(
  1. Map map
)

fromMap

Implementation

GeoPoiLocation.fromMap(Map<dynamic, dynamic> map) {
  name = map['name'] as String;
  id = map['id'] as String;
  lon = map['lon'] as String;
  lat = map['lat'] as String;
  adm1 = map['adm1'] as String;
  adm2 = map['adm2'] as String;
  country = map['country'] as String;
  tz = map['tz'] as String;
  utcOffset = map['utcOffset'] as String;
  isDst = map['isDst'] as String;
  type = map['type'] as String;
  rank = map['rank'] as String;
  fxLink = map['fxLink'] as String? ?? '';
}