public static ParamViewData Create(ApiMethodParam apiMethodParam) { return(new ParamViewData { Name = apiMethodParam.Name, Value = apiMethodParam.Value, Description = apiMethodParam.Description, IsNullable = apiMethodParam.IsNullable, ParamType = apiMethodParam.ParamType }); }
private string getTypescriptParam(ApiMethodParam param) { var tsType = _typeMapping.GetTSType(param.Type); return($"{param.GeneratedName}{(param.IsOptional ? "?" : "")}: {tsType}"); }