MapModelResults.fromJson constructor
Implementation
MapModelResults.fromJson(Map<String, dynamic> json) {
formattedAddress = json['formatted_address']?.toString();
geometry = (json['geometry'] != null) ? MapModelResultsGeometry.fromJson(json['geometry']) : null;
name = json['name']?.toString();
rating = json['rating']?.toInt();
userRatingsTotal = json['user_ratings_total']?.toInt();
}