public static ParameterObject Create(Core.Model.Parameter parameter) => new ParameterObject( name: parameter.SerializedName, @in: parameter.Location.ToString().ToLower(), required: parameter.IsRequired, xMsSkipUrlEncoding: parameter.XMsSkipUrlEncoding(), schema: parameter.IsConstant ? SchemaObject.Const(parameter.ModelType, parameter.DefaultValue) : parameter.IsApiVersion() ? SchemaObject.Const(parameter.ModelType, parameter.Method.CodeModel.ApiVersion) : SchemaObject.Create(parameter.ModelType));
public static ResponseObject Create(Core.Model.Response response) => new ResponseObject(SchemaObject.Create(response.Body));