func (o *Scopes) GetProductAccessOk() (*ProductAccess, bool) {
	if o == nil || o.ProductAccess == nil {
		return nil, false
	}
	return o.ProductAccess, true
}
GetProductAccessOk returns a tuple with the ProductAccess field value if set, nil otherwise
and a boolean to check if the value 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
}