private void ProcessJson(SwaggerModel model) { structure = model; CreateRequests(); CreateFolders(); CreateFiles(); }
private void LoadCompleted() { if (OnComplete != null) { JsonSerializerSettings setting = new JsonSerializerSettings(); setting.ReferenceResolverProvider = ReferenceResolverProvider; structure = JsonConvert.DeserializeObject <SwaggerModel>(www.text, setting); OnComplete.Invoke(structure); } }