func (o *Taxform) HasW2() bool {
	if o != nil && o.W2 != nil {
		return true
	}
	return false
}
HasW2 returns a boolean if a field has been set.
package plaid
import (
	"encoding/json"
)
type Taxform struct {
	DocumentType string `json:"document_type"`
	W2 *W2 `json:"w2,omitempty"`
	AdditionalProperties map[string]interface{}
}
type _Taxform Taxform
func NewTaxform(documentType string) *Taxform {
	this := Taxform{}
	this.DocumentType = documentType
	return &this
}
func NewTaxformWithDefaults() *Taxform {
	this := Taxform{}
	return &this
}
func (o *Taxform) GetDocumentType() string {
	if o == nil {
		var ret string
		return ret
	}
	return o.DocumentType
}
func (o *Taxform) GetDocumentTypeOk() (*string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.DocumentType, true
}
func (o *Taxform) SetDocumentType(v string) {
	o.DocumentType = v
}
func (o *Taxform) GetW2() W2 {
	if o == nil || o.W2 == nil {
		var ret W2
		return ret
	}
	return *o.W2
}
func (o *Taxform) GetW2Ok() (*W2, bool) {
	if o == nil || o.W2 == nil {
		return nil, false
	}
	return o.W2, true
}