func (o *ItemPublicTokenCreateResponse) HasExpiration() bool {
	if o != nil && o.Expiration != nil {
		return true
	}
	return false
}
HasExpiration returns a boolean if a field has been set.
package plaid
import (
	"encoding/json"
	"time"
)
type ItemPublicTokenCreateResponse struct {
	PublicToken string `json:"public_token"`
	Expiration *time.Time `json:"expiration,omitempty"`
	RequestId string `json:"request_id"`
	AdditionalProperties map[string]interface{}
}
type _ItemPublicTokenCreateResponse ItemPublicTokenCreateResponse
func NewItemPublicTokenCreateResponse(publicToken string, requestId string) *ItemPublicTokenCreateResponse {
	this := ItemPublicTokenCreateResponse{}
	this.PublicToken = publicToken
	this.RequestId = requestId
	return &this
}
func NewItemPublicTokenCreateResponseWithDefaults() *ItemPublicTokenCreateResponse {
	this := ItemPublicTokenCreateResponse{}
	return &this
}
func (o *ItemPublicTokenCreateResponse) GetPublicToken() string {
	if o == nil {
		var ret string
		return ret
	}
	return o.PublicToken
}
func (o *ItemPublicTokenCreateResponse) GetPublicTokenOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.PublicToken, true
}
func (o *ItemPublicTokenCreateResponse) SetPublicToken(v string) {
	o.PublicToken = v
}
func (o *ItemPublicTokenCreateResponse) GetExpiration() time.Time {
	if o == nil || o.Expiration == nil {
		var ret time.Time
		return ret
	}
	return *o.Expiration
}
func (o *ItemPublicTokenCreateResponse) GetExpirationOk() (*time.Time, bool) {
	if o == nil || o.Expiration == nil {
		return nil, false
	}
	return o.Expiration, true
}