locationNotificationModelToLocationDataModel method

LocationDataModel locationNotificationModelToLocationDataModel(
  1. LocationNotificationModel locationNotificationModel
)

Implementation

LocationDataModel locationNotificationModelToLocationDataModel(
    LocationNotificationModel locationNotificationModel) {
  return LocationDataModel(
    {
      trimAtsignsFromKey(locationNotificationModel.key!): LocationSharingFor(
          locationNotificationModel.from,
          locationNotificationModel.to,
          LocationSharingType.P2P,
          locationNotificationModel.isAccepted,
          locationNotificationModel.isExited,
          locationNotificationModel.isSharing)
    },
    null,
    null,
    DateTime.now(),
    locationNotificationModel.atsignCreator!,
    locationNotificationModel.receiver!,
  );
}