LocalPrediction.fromMap constructor

LocalPrediction.fromMap(
  1. dynamic map,
  2. String matchingStr
)

Implementation

LocalPrediction.fromMap(dynamic map, String matchingStr) {
  placeId = map['place_id'];
  lat = map['lat'];
  lng = map['lng'];
  formattedAddress = map['formatted_address'];
  matchedSubstrings = [
    MatchedSubstring(length: matchingStr.length, offset: 0)
  ];
  localMap = LocalMap.fromMap(map);
}