json.(project_invite_link, :id, :role, :is_apply, :sign)
json.expired_at format_time(project_invite_link&.expired_at)
json.user do 
  json.partial! "/users/user_simple", locals: {user: project_invite_link.user}
end
if project_invite_link&.project.present?
  json.project do 
    json.partial! "/projects/detail", locals: {project: project_invite_link.project}
  end
else
  json.project nil 
end
