func (o *InstitutionsSearchAccountFilter) HasDepository() bool {
	if o != nil && o.Depository != nil {
		return true
	}
	return false
}
HasDepository returns a boolean if a field has been set.
package plaid
import (
	"encoding/json"
)
type InstitutionsSearchAccountFilter struct {
	Loan *[]AccountSubtype `json:"loan,omitempty"`
	Depository *[]AccountSubtype `json:"depository,omitempty"`
	Credit *[]AccountSubtype `json:"credit,omitempty"`
	Investment *[]AccountSubtype `json:"investment,omitempty"`
	AdditionalProperties map[string]interface{}
}
type _InstitutionsSearchAccountFilter InstitutionsSearchAccountFilter
func NewInstitutionsSearchAccountFilter() *InstitutionsSearchAccountFilter {
	this := InstitutionsSearchAccountFilter{}
	return &this
}
func NewInstitutionsSearchAccountFilterWithDefaults() *InstitutionsSearchAccountFilter {
	this := InstitutionsSearchAccountFilter{}
	return &this
}
func (o *InstitutionsSearchAccountFilter) GetLoan() []AccountSubtype {
	if o == nil || o.Loan == nil {
		var ret []AccountSubtype
		return ret
	}
	return *o.Loan
}
func (o *InstitutionsSearchAccountFilter) GetLoanOk() (*[]AccountSubtype, bool) {
	if o == nil || o.Loan == nil {
		return nil, false
	}
	return o.Loan, true
}
func (o *InstitutionsSearchAccountFilter) HasLoan() bool {
	if o != nil && o.Loan != nil {
		return true
	}
	return false
}
func (o *InstitutionsSearchAccountFilter) SetLoan(v []AccountSubtype) {
	o.Loan = &v
}
func (o *InstitutionsSearchAccountFilter) GetDepository() []AccountSubtype {
	if o == nil || o.Depository == nil {
		var ret []AccountSubtype
		return ret
	}
	return *o.Depository
}
func (o *InstitutionsSearchAccountFilter) GetDepositoryOk() (*[]AccountSubtype, bool) {
	if o == nil || o.Depository == nil {
		return nil, false
	}
	return o.Depository, true
}