public ApiParameterModel(ApiParameterDescription apiParameterDescription) { Type = apiParameterDescription.ParameterDescriptor.ParameterType.Name; TypeProperties = apiParameterDescription.ParameterDescriptor.ParameterType.GetProperties().Select(k => k.Name).ToList(); TypePropertiesLower = TypeProperties.Select(a => a[0].ToString().ToLower() + a.Substring(1)).ToList(); Name = apiParameterDescription.Name; IsUriParameter = apiParameterDescription.Source == ApiParameterSource.FromUri; IsClass = !apiParameterDescription.ParameterDescriptor.ParameterType.FullName.Contains("System"); IsArray = apiParameterDescription.ParameterDescriptor.ParameterType.IsArray; }