def build
      klass = ResourceClassCache.instance.fetch(pcdm_object) do
        self.class.to_valkyrie_resource_class(klass: pcdm_object.class)
      end
      pcdm_object.id = minted_id if pcdm_object.id.nil?
      attrs = attributes.tap { |hash| hash[:new_record] = pcdm_object.new_record? }
      klass.new(alternate_ids: [::Valkyrie::ID.new(pcdm_object.id)], **attrs)
    end
def build
      klass = ResourceClassCache.instance.fetch(pcdm_object) do
        self.class.to_valkyrie_resource_class(klass: pcdm_object.class)
      end
      pcdm_object.id = minted_id if pcdm_object.id.nil?
      attrs = attributes.tap { |hash| hash[:new_record] = pcdm_object.new_record? }
      klass.new(alternate_ids: [::Valkyrie::ID.new(pcdm_object.id)], **attrs)
    end
Builds a `Valkyrie::Resource` equivalent to the `pcdm_object`

 @return [::Valkyrie::Resource] a resource mirroiring `pcdm_object`