ConnectedMachine.Autorest/custom/MachineExtensionUpgrade.cs
using System.Collections;
using Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.Json; namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models { public partial class MachineExtensionUpgrade : Hashtable { partial void AfterDeserializeDictionary(IDictionary content) { foreach (var key in content.Keys) { this[key] = content[key]; } } partial void AfterToJson(ref JsonObject container) { foreach (var key in this.Keys) { container.Add( key.ToString(), Runtime.JsonSerializable.ToJsonValue(this[key])); } } partial void AfterFromJson(JsonObject json) { foreach (var key in json.Keys) { this[key] = json[key].ToValue(); } } } } |