Model/MicrosoftODataEdmIEdmTypeReference.ps1
# # Portal Api # Portal Api HTTP API V1 # Version: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Definition No description available. .OUTPUTS MicrosoftODataEdmIEdmTypeReference<PSCustomObject> #> function Initialize-ElementsMicrosoftODataEdmIEdmTypeReference { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Definition} ) Process { 'Creating PSCustomObject: Elements.Client => ElementsMicrosoftODataEdmIEdmTypeReference' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "definition" = ${Definition} } return $PSO } } <# .SYNOPSIS Convert from JSON to MicrosoftODataEdmIEdmTypeReference<PSCustomObject> .DESCRIPTION Convert from JSON to MicrosoftODataEdmIEdmTypeReference<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MicrosoftODataEdmIEdmTypeReference<PSCustomObject> #> function ConvertFrom-ElementsJsonToMicrosoftODataEdmIEdmTypeReference { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: Elements.Client => ElementsMicrosoftODataEdmIEdmTypeReference' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in ElementsMicrosoftODataEdmIEdmTypeReference $AllProperties = ("isNullable", "definition") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isNullable"))) { #optional property not found $IsNullable = $null } else { $IsNullable = $JsonParameters.PSobject.Properties["isNullable"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "definition"))) { #optional property not found $Definition = $null } else { $Definition = $JsonParameters.PSobject.Properties["definition"].value } $PSO = [PSCustomObject]@{ "isNullable" = ${IsNullable} "definition" = ${Definition} } return $PSO } } |