|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | // <auto-generated/> | 
|  |  | 5 |  |  | 
|  |  | 6 |  | #nullable disable | 
|  |  | 7 |  |  | 
|  |  | 8 |  | using System; | 
|  |  | 9 |  |  | 
|  |  | 10 |  | namespace Azure.ResourceManager.Storage.Models | 
|  |  | 11 |  | { | 
|  |  | 12 |  |     internal static class AccountStatusExtensions | 
|  |  | 13 |  |     { | 
|  | 0 | 14 |  |         public static string ToSerialString(this AccountStatus value) => value switch | 
|  | 0 | 15 |  |         { | 
|  | 0 | 16 |  |             AccountStatus.Available => "available", | 
|  | 0 | 17 |  |             AccountStatus.Unavailable => "unavailable", | 
|  | 0 | 18 |  |             _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccountStatus value.") | 
|  | 0 | 19 |  |         }; | 
|  |  | 20 |  |  | 
|  |  | 21 |  |         public static AccountStatus ToAccountStatus(this string value) | 
|  |  | 22 |  |         { | 
|  | 2416 | 23 |  |             if (string.Equals(value, "available", StringComparison.InvariantCultureIgnoreCase)) return AccountStatus.Ava | 
|  | 400 | 24 |  |             if (string.Equals(value, "unavailable", StringComparison.InvariantCultureIgnoreCase)) return AccountStatus.U | 
|  | 0 | 25 |  |             throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccountStatus value."); | 
|  |  | 26 |  |         } | 
|  |  | 27 |  |     } | 
|  |  | 28 |  | } |