func (o *W2) HasEmployee() bool {
	if o != nil && o.Employee != nil {
		return true
	}
	return false
}
HasEmployee returns a boolean if a field has been set.
package plaid
import (
	"encoding/json"
)
type W2 struct {
	Employer *PaystubEmployer `json:"employer,omitempty"`
	Employee *Employee `json:"employee,omitempty"`
	TaxYear NullableString `json:"tax_year,omitempty"`
	EmployerIdNumber NullableString `json:"employer_id_number,omitempty"`
	WagesTipsOtherComp NullableString `json:"wages_tips_other_comp,omitempty"`
	FederalIncomeTaxWithheld NullableString `json:"federal_income_tax_withheld,omitempty"`
	SocialSecurityWages NullableString `json:"social_security_wages,omitempty"`
	SocialSecurityTaxWithheld NullableString `json:"social_security_tax_withheld,omitempty"`
	MedicareWagesAndTips NullableString `json:"medicare_wages_and_tips,omitempty"`
	MedicareTaxWithheld NullableString `json:"medicare_tax_withheld,omitempty"`
	SocialSecurityTips NullableString `json:"social_security_tips,omitempty"`
	AllocatedTips NullableString `json:"allocated_tips,omitempty"`
	Box9 NullableString `json:"box_9,omitempty"`
	DependentCareBenefits NullableString `json:"dependent_care_benefits,omitempty"`
	NonqualifiedPlans NullableString `json:"nonqualified_plans,omitempty"`
	Box12 *[]W2Box12 `json:"box_12,omitempty"`
	StatutoryEmployee NullableString `json:"statutory_employee,omitempty"`
	RetirementPlan NullableString `json:"retirement_plan,omitempty"`
	ThirdPartySickPay NullableString `json:"third_party_sick_pay,omitempty"`
	Other NullableString `json:"other,omitempty"`
	StateAndLocalWages *[]W2StateAndLocalWages `json:"state_and_local_wages,omitempty"`
	AdditionalProperties map[string]interface{}
}
type _W2 W2
func NewW2() *W2 {
	this := W2{}
	return &this
}
func NewW2WithDefaults() *W2 {
	this := W2{}
	return &this
}
func (o *W2) GetEmployer() PaystubEmployer {
	if o == nil || o.Employer == nil {
		var ret PaystubEmployer
		return ret
	}
	return *o.Employer
}
func (o *W2) GetEmployerOk() (*PaystubEmployer, bool) {
	if o == nil || o.Employer == nil {
		return nil, false
	}
	return o.Employer, true
}
func (o *W2) HasEmployer() bool {
	if o != nil && o.Employer != nil {
		return true
	}
	return false
}
func (o *W2) SetEmployer(v PaystubEmployer) {
	o.Employer = &v
}
func (o *W2) GetEmployee() Employee {
	if o == nil || o.Employee == nil {
		var ret Employee
		return ret
	}
	return *o.Employee
}
func (o *W2) GetEmployeeOk() (*Employee, bool) {
	if o == nil || o.Employee == nil {
		return nil, false
	}
	return o.Employee, true
}