toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (enterLocation != null) {
    data['enterLocation'] = enterLocation!.toJson();
  }
  if (location != null) {
    data['location'] = location!.toJson();
  }
  data['district'] = district;
  data['province'] = province;
  data['typecode'] = typecode;
  data['tel'] = tel;
  data['hasIndoorMap'] = hasIndoorMap;
  data['businessArea'] = businessArea;
  if (images != null) {
    data['images'] = images!.map((v) => v.toJson()).toList();
  }
  data['parkingType'] = parkingType;
  data['city'] = city;
  data['exitLocation'] = exitLocation;
  data['adcode'] = adcode;
  data['name'] = name;
  data['type'] = type;
  if (subPOIs != null) {
    data['subPOIs'] = subPOIs!.map((v) => v.toJson()).toList();
  }
  data['shopID'] = shopID;
  data['gridcode'] = gridcode;
  data['uid'] = uid;
  data['website'] = website;
  data['pcode'] = pcode;
  data['distance'] = distance;
  data['email'] = email;
  if (extensionInfo != null) {
    data['extensionInfo'] = extensionInfo!.toJson();
  }
  data['direction'] = direction;
  data['citycode'] = citycode;
  data['postcode'] = postcode;
  data['address'] = address;
  data['indoorData'] = indoorData;
  return data;
}