generating swift model objects and json-to-model functions