'Returns the note object as a dictionary.'

def as_dict(self):

    return {'id': self.pk, 'user_id': self.user.pk, 'uri': self.uri, 'text': self.text, 'quote': self.quote, 'ranges': [{'start': self.range_start, 'startOffset': self.range_start_offset, 'end': self.range_end, 'endOffset': self.range_end_offset}], 'tags': self.tags.split(','), 'created': str(self.created), 'updated': str(self.updated)}
