function anonymous(types,util ) { return function CountItem$toObject(m,o){ if(!o) o={} var d={} if(o.defaults){ d.sportType=o.enums===String?"ST_UNDEFINED":0 d.count=0 } if(m.sportType!=null&&m.hasOwnProperty("sportType")){ d.sportType=o.enums===String?types[0].values[m.sportType]:m.sportType } if(m.count!=null&&m.hasOwnProperty("count")){ d.count=m.count } return d } }