toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'from': from?.toUtc().toString(),
'to': to?.toUtc().toString(),
'locationSharingType': locationSharingType.toString(),
'isAccepted': isAccepted.toString(),
'isExited': isExited.toString(),
'isSharing': isSharing.toString(),
};
}