def METHOD_NAME(cls, doc: Dict[str, Any]) -> 'Note':
    return Note(
        id=doc.get('id', None) or doc.get('_id'),
        text=doc.get('text', None),
        user=doc.get('user', None),
        attributes=doc.get('attributes', dict()),
        note_type=doc.get('type', None),
        create_time=doc.get('createTime'),
        update_time=doc.get('updateTime'),
        alert=doc.get('alert'),
        customer=doc.get('customer')
    )