moved json deserializer to model classes