marked old method as deprecated
added new deserializeEnum method
using non deprecated method
Merge branch 'feature/#6-fix-type' into develop
fixes #6