Custom as_dict method for Cart model