Updated cloudlb to_dict method to consider the id