toJson method
Converts this Location object to a JSON object.
Each parameter of Location corresponds to a key in the resulting JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'resolveAvailability': resolveAvailability,
'displayName': displayName,
'locationEmailAddress': locationEmailAddress,
'address': address?.toJson(),
'coordinates': coordinates?.toJson(),
};
}