toJson method
Implementation
Map<String, dynamic> toJson() => {
"description": description,
"matched_substrings": matchedSubstrings == null
? []
: List<dynamic>.from(matchedSubstrings!.map((x) => x.toJson())),
"place_id": placeId,
"reference": reference,
"structured_formatting": structuredFormatting?.toJson(),
"terms": terms == null
? []
: List<dynamic>.from(terms!.map((x) => x.toJson())),
"types": types == null ? [] : List<dynamic>.from(types!.map((x) => x)),
};