BMFPOIDetailInfo.fromMap constructor

BMFPOIDetailInfo.fromMap(
  1. Map map
)

map => BMFPOIDetailInfo

Implementation

BMFPOIDetailInfo.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFPOIDetailInfo,The parameter map cannot be null !') {
  imageNumber = map['imageNumber'];
  grouponNumber = map['grouponNumber'];
  checkInNumber = map['checkInNumber'];
  overallRating = map['overallRating'];
  favoriteNumber = map['favoriteNumber'];
  facilityRating = map['facilityRating'];
  tasteRating = map['tasteRating'];
  commentNumber = map['commentNumber'];
  discountNumber = map['discountNumber'];
  serviceRating = map['serviceRating'];
  tag = map['tag'];
  if (map['children'] != null) {
    children = new List<BMFPOIDetailChildrenInfo>();
    map['children'].forEach((v) {
      children.add(BMFPOIDetailChildrenInfo.fromMap(v as Map));
    });
  }
  type = map['type'];
  hygieneRating = map['hygieneRating'];
  naviLocation = map['naviLocation'] == null
      ? null
      : BMFCoordinate.fromMap(map['naviLocation']);
  distance = map['distance'];
  environmentRating = map['environmentRating'];
  technologyRating = map['technologyRating'];
  detailURL = map['detailURL'];
  price = map['price'];
  openingHours = map['openingHours'];
}