class ActiveModelSerializers::Adapter::JsonApi::ResourceIdentifier

def as_json

def as_json
  if id.blank?
    { type: type }
  else
    { id: id.to_s, type: type }
  end
end