Creates a new Checkpoint from an existing checkpoint.

        :param checkpoint: Existing checkpoint.
        :type checkpoint: ~azure.eventprocessorhost.checkpoint.Checkpoint

def from_source(self, checkpoint):
        """
        Creates a new Checkpoint from an existing checkpoint.

        :param checkpoint: Existing checkpoint.
        :type checkpoint: ~azure.eventprocessorhost.checkpoint.Checkpoint
        """
        self.partition_id = checkpoint.partition_id
        self.offset = checkpoint.offset
        self.sequence_number = checkpoint.sequence_number