func (o *Scopes) HasProductAccess() bool {
	if o != nil && o.ProductAccess != nil {
		return true
	}
	return false
}
HasProductAccess returns a boolean if a field has been set.
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
}