Added ifdef for to model method
Added contract resolver to ignore some properties