toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'locationSharingFor': json.encode(locationSharingFor),
'lat': lat.toString(),
'long': long.toString(),
'lastUpdatedAt': lastUpdatedAt.toUtc().toString(),
'sender': sender,
'receiver': receiver
};
}