toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['description'] = this.description;
if (this.matchedSubstrings != null) {
data['matched_substrings'] =
this.matchedSubstrings!.map((v) => v.toJson()).toList();
}
data['place_id'] = this.placeId;
data['reference'] = this.reference;
if (this.structuredFormatting != null) {
data['structured_formatting'] = this.structuredFormatting!.toJson();
}
if (this.terms != null) {
data['terms'] = this.terms!.map((v) => v.toJson()).toList();
}
data['types'] = this.types;
return data;
}