Pois.fromJson constructor

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

Implementation

Pois.fromJson(Map<String, dynamic> json) {
  enterLocation = json['enterLocation'] != null
      ? EnterLocation.fromJson(json['enterLocation'])
      : null;
  location = json['location'] != null
      ? EnterLocation.fromJson(json['location'])
      : null;
  district = json['district'];
  province = json['province'];
  typecode = json['typecode'];
  tel = json['tel'];
  hasIndoorMap = json['hasIndoorMap'];
  businessArea = json['businessArea'];
  if (json['images'] != null) {
    images = <Images>[];
    json['images'].forEach((v) {
      images!.add(Images.fromJson(v));
    });
  }
  parkingType = json['parkingType'];
  city = json['city'];
  exitLocation = json['exitLocation'];
  adcode = json['adcode'];
  name = json['name'];
  type = json['type'];
  if (json['subPOIs'] != null) {
    subPOIs = <SubPOIs>[];
    json['subPOIs'].forEach((v) {
      subPOIs!.add(SubPOIs.fromJson(v));
    });
  }
  shopID = json['shopID'];
  gridcode = json['gridcode'];
  uid = json['uid'];
  website = json['website'];
  pcode = json['pcode'];
  distance = json['distance'];
  email = json['email'];
  extensionInfo = json['extensionInfo'] != null
      ? ExtensionInfo.fromJson(json['extensionInfo'])
      : null;
  direction = json['direction'];
  citycode = json['citycode'];
  postcode = json['postcode'];
  address = json['address'];
  indoorData = json['indoorData'];
}