code: def to_json(self, with_volumes=True):
          
          data = super().to_json()
          if with_volumes:
              data['volumes'] = [
                  {
                      'volumeId': vol.id,
                      'volumeType': vol.volume_type,
                      'size': vol.size
                  } for vol in self.volumes
              ]
  
          return data
docs: Augment the base `to_json` function, adding information about volumes
  
          Returns:
              `dict`