code: func (inv *JoinOrganizationInvitation) ConvertToView(usrMgr *user.Manager, valMgr *validation.Manager) (*JoinOrganizationInvitationView, error) {
  	vw := &JoinOrganizationInvitationView{}
  	vw.Organization = inv.Organization
  	vw.Role = inv.Role
  	vw.Status = inv.Status
  	vw.Created = inv.Created
  	vw.Method = inv.Method
  	vw.EmailAddress = inv.EmailAddress
  	vw.PhoneNumber = inv.PhoneNumber
  	vw.IsOrganization = inv.IsOrganization
  
  	var err error
  	vw.User, err = organization.ConvertUsernameToIdentifier(inv.User, usrMgr, valMgr)
  	// user can be empty if invited through email or phone number
  	if db.IsNotFound(err) {
  		err = nil
  	}
  	return vw, err
  }
docs: // ConvertToView converts a JoinOrganizationInvitation to a JoinOrganizationInvitationView