MapModelResults.fromJson constructor

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

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();
}