internal static string Render(ParameterModel model, int tabCount = 0) { var tpl = new RequestBodyTemplate(); tpl.Initialize(model); return(ConversionUtilities.Tab(tpl.Render(), tabCount)); }
/// <summary>Renders the request body generation code.</summary> /// <param name="operation">The operation.</param> /// <param name="tabCount">The tab count.</param> /// <returns>Rendered request body</returns> public static string Render(OperationModel operation, int tabCount = 0) { var tpl = new RequestBodyTemplate(operation); return(ConversionUtilities.Tab(tpl.Render(), tabCount)); }