code: public function setDeleted($deleted)
      {
          if ($deleted instanceof DateTime) {
              $this->deleted = $deleted;
          } else {
              try {
                  $this->deleted = new DateTime($deleted);
              } catch (\Exception $e) {
                  $this->deleted = null;
              }
          }
  
          return $this;
      }
docs: Sets the "deleted" of the MediaUsageResponse.
  
  @param DateTime $deleted
  
  @return MediaUsageResponse