code: def to_dict(self):
          
  
          return {
              "total": self.total,
              "subtotal": self.subtotal,
              "items": self.items,
              "extra_amount": self.extra_amount
          }
docs: Attribute values to dict