Exemple #1
0
 /// <summary>Constructor for deserialization.</summary>
 /// <param name="json">a <see cref="Carbon.Json.JsonObject" /> to deserialize from.</param>
 internal SetSubnet_SubnetUuidApiVersionMetadataSpec(Carbon.Json.JsonObject json)
 {
     // deserialize the contents
     _uuid = If(json?.PropertyT <Carbon.Json.JsonString>("Uuid"), out var __jsonUuid) ? (string)__jsonUuid : (string)Uuid;
     _body = If(json?.PropertyT <Carbon.Json.JsonObject>("Body"), out var __jsonBody) ? Nutanix.Powershell.Models.SubnetIntentInput.FromJson(__jsonBody) : Body;
 }
 /// <summary>Constructor for deserialization.</summary>
 /// <param name="json">a <see cref="Carbon.Json.JsonObject" /> to deserialize from.</param>
 internal NewSubnet_SubnetApiVersionMetadataSpec(Carbon.Json.JsonObject json)
 {
     // deserialize the contents
     _body = If(json?.PropertyT <Carbon.Json.JsonObject>("Body"), out var __jsonBody) ? Nutanix.Powershell.Models.SubnetIntentInput.FromJson(__jsonBody) : Body;
 }