code: public function withId(?string $id): self
      {
          $copy = clone $this;
          $copy->id = $id ?: null;
          $copy->normalize();
  
          return $copy;
      }
docs: Return a new instance with the specified id.
  
  @param string|null $id
  @return ResourceObject