Generate Javascript model classes from swagger definition and convert between JSON and model instance