refactored NEST serialization into nest_api/models