toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.addressComponents != null) {
data['address_components'] =
this.addressComponents!.map((v) => v.toJson()).toList();
}
data['adr_address'] = this.adrAddress;
data['formatted_address'] = this.formattedAddress;
if (this.geometry != null) {
data['geometry'] = this.geometry!.toJson();
}
data['icon'] = this.icon;
data['name'] = this.name;
if (this.photos != null) {
data['photos'] = this.photos!.map((v) => v.toJson()).toList();
}
data['place_id'] = this.placeId;
data['reference'] = this.reference;
data['scope'] = this.scope;
data['types'] = this.types;
data['url'] = this.url;
data['utc_offset'] = this.utcOffset;
data['vicinity'] = this.vicinity;
data['website'] = this.website;
return data;
}