package models

type Specifics struct {
	PhotoUrl   string `json:"photoUrl"`
	ImageId    string `json:"imageId"`
	ImageLevel string `json:"imageLevel"`
	Email      string `json:"email"`
	EmailLevel string `json:"emailLevel"`
	Phone      string `json:"phone"`
	PhoneLevel string `json:"phoneLevel"`
}

func (s Specifics) addEmail(emails string) (result string) {
	if s.Email != "" {
		if emails != "" {
			result = emails + ", "
		}
		result += s.Email
	}
	return
}

package models

type Specifics struct {
	PhotoUrl   string `json:"photoUrl"`
	ImageId    string `json:"imageId"`
	ImageLevel string `json:"imageLevel"`
	Email      string `json:"email"`
	EmailLevel string `json:"emailLevel"`
	Phone      string `json:"phone"`
	PhoneLevel string `json:"phoneLevel"`
	Id         int    `json:"individualId"`
}

func (s Specifics) addEmail(emails string) (result string) {
	if s.Email != "" {
		if emails != "" {
			result = emails + ", "
		}
		result += s.Email
	} else {
		result = emails
	}
	return
}

Fix problem with missing email addresses.
Fix problem with missing email addresses.
