func (o *Email) SetPrimary(v bool) {
	o.Primary = v
}
SetPrimary sets field value
package plaid
import (
	"encoding/json"
)
type Email struct {
	Data string `json:"data"`
	Primary bool `json:"primary"`
	Type string `json:"type"`
	AdditionalProperties map[string]interface{}
}
type _Email Email
func NewEmail(data string, primary bool, type_ string) *Email {
	this := Email{}
	this.Data = data
	this.Primary = primary
	this.Type = type_
	return &this
}
func NewEmailWithDefaults() *Email {
	this := Email{}
	return &this
}
func (o *Email) GetData() string {
	if o == nil {
		var ret string
		return ret
	}
	return o.Data
}
func (o *Email) GetDataOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Data, true
}
func (o *Email) SetData(v string) {
	o.Data = v
}
func (o *Email) GetPrimary() bool {
	if o == nil {
		var ret bool
		return ret
	}
	return o.Primary
}
func (o *Email) GetPrimaryOk() (*bool, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Primary, true
}