def METHOD_NAME(cls, rec) -> 'Note':
    return Note(
        id=rec.id,
        text=rec.text,
        user=rec.user,
        attributes=dict(rec.attributes),
        note_type=rec.type,
        create_time=rec.create_time,
        update_time=rec.update_time,
        alert=rec.alert,
        customer=rec.customer
    )