function anonymous(types,util ) { return function CountItem$fromObject(d){ if(d instanceof this.ctor) return d var m=new this.ctor switch(d.sportType){ case"ST_UNDEFINED": case 0: m.sportType=0 break case"ST_FOOTBALL": case 1: m.sportType=1 break case"ST_BASKETBALL": case 2: m.sportType=2 break case"ST_TENNIS": case 3: m.sportType=3 break case"ST_BASEBALL": case 4: m.sportType=4 break case"ST_CRICKET": case 6: m.sportType=6 break case"ST_MOTO": case 7: m.sportType=7 break case"ST_RUGBY": case 8: m.sportType=8 break case"ST_AM_FOOTBALL": case 9: m.sportType=9 break case"ST_AUSSIE_RULES": case 10: m.sportType=10 break case"ST_HOCKEY": case 11: m.sportType=11 break case"ST_BADMINTON": case 12: m.sportType=12 break case"ST_VOLLEYBALL": case 13: m.sportType=13 break case"ST_FIGHTING": case 14: m.sportType=14 break case"ST_CYCLING": case 15: m.sportType=15 break case"ST_HANDBALL": case 16: m.sportType=16 break case"ST_OTHER": case 90: m.sportType=90 break } if(d.count!=null){ m.count=d.count|0 } return m } }