toJson method

Map<String, dynamic> toJson()

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(),
  };
}