func (o *Scopes) GetNewAccounts() bool {
	if o == nil || o.NewAccounts.Get() == nil {
		var ret bool
		return ret
	}
	return *o.NewAccounts.Get()
}
GetNewAccounts returns the NewAccounts field value if set, zero value otherwise (both if not set or set to explicit null).
package plaid
import (
	"encoding/json"
)
type Scopes struct {
	ProductAccess *ProductAccess `json:"product_access,omitempty"`
	Accounts *[]AccountAccess `json:"accounts,omitempty"`
	NewAccounts NullableBool `json:"new_accounts,omitempty"`
}
func NewScopes() *Scopes {
	this := Scopes{}
	var newAccounts bool = true
	this.NewAccounts = *NewNullableBool(&newAccounts)
	return &this
}
func NewScopesWithDefaults() *Scopes {
	this := Scopes{}
	var newAccounts bool = true
	this.NewAccounts = *NewNullableBool(&newAccounts)
	return &this
}
func (o *Scopes) GetProductAccess() ProductAccess {
	if o == nil || o.ProductAccess == nil {
		var ret ProductAccess
		return ret
	}
	return *o.ProductAccess
}
func (o *Scopes) GetProductAccessOk() (*ProductAccess, bool) {
	if o == nil || o.ProductAccess == nil {
		return nil, false
	}
	return o.ProductAccess, true
}
func (o *Scopes) HasProductAccess() bool {
	if o != nil && o.ProductAccess != nil {
		return true
	}
	return false
}
func (o *Scopes) SetProductAccess(v ProductAccess) {
	o.ProductAccess = &v
}
func (o *Scopes) GetAccounts() []AccountAccess {
	if o == nil || o.Accounts == nil {
		var ret []AccountAccess
		return ret
	}
	return *o.Accounts
}
func (o *Scopes) GetAccountsOk() (*[]AccountAccess, bool) {
	if o == nil || o.Accounts == nil {
		return nil, false
	}
	return o.Accounts, true
}
func (o *Scopes) HasAccounts() bool {
	if o != nil && o.Accounts != nil {
		return true
	}
	return false
}
func (o *Scopes) SetAccounts(v []AccountAccess) {
	o.Accounts = &v
}