|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 4 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.IO; |
| 7 | +using System; |
| 8 | +namespace Graph.Community.Models |
| 9 | +{ |
| 10 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 11 | + #pragma warning disable CS1591 |
| 12 | + public partial class SPView : IAdditionalDataHolder, IParsable |
| 13 | + #pragma warning restore CS1591 |
| 14 | + { |
| 15 | + /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> |
| 16 | + public IDictionary<string, object> AdditionalData { get; set; } |
| 17 | + /// <summary>The Id property</summary> |
| 18 | + public Guid? Id { get; set; } |
| 19 | + /// <summary>The ServerRelativeUrl property</summary> |
| 20 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 21 | +#nullable enable |
| 22 | + public string? ServerRelativeUrl { get; set; } |
| 23 | +#nullable restore |
| 24 | +#else |
| 25 | + public string ServerRelativeUrl { get; set; } |
| 26 | +#endif |
| 27 | + /// <summary>The Title property</summary> |
| 28 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 29 | +#nullable enable |
| 30 | + public string? Title { get; set; } |
| 31 | +#nullable restore |
| 32 | +#else |
| 33 | + public string Title { get; set; } |
| 34 | +#endif |
| 35 | + /// <summary> |
| 36 | + /// Instantiates a new <see cref="global::Graph.Community.Models.SPView"/> and sets the default values. |
| 37 | + /// </summary> |
| 38 | + public SPView() |
| 39 | + { |
| 40 | + AdditionalData = new Dictionary<string, object>(); |
| 41 | + } |
| 42 | + /// <summary> |
| 43 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 44 | + /// </summary> |
| 45 | + /// <returns>A <see cref="global::Graph.Community.Models.SPView"/></returns> |
| 46 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 47 | + public static global::Graph.Community.Models.SPView CreateFromDiscriminatorValue(IParseNode parseNode) |
| 48 | + { |
| 49 | + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); |
| 50 | + return new global::Graph.Community.Models.SPView(); |
| 51 | + } |
| 52 | + /// <summary> |
| 53 | + /// The deserialization information for the current model |
| 54 | + /// </summary> |
| 55 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 56 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 57 | + { |
| 58 | + return new Dictionary<string, Action<IParseNode>> |
| 59 | + { |
| 60 | + { "Id", n => { Id = n.GetGuidValue(); } }, |
| 61 | + { "ServerRelativeUrl", n => { ServerRelativeUrl = n.GetStringValue(); } }, |
| 62 | + { "Title", n => { Title = n.GetStringValue(); } }, |
| 63 | + }; |
| 64 | + } |
| 65 | + /// <summary> |
| 66 | + /// Serializes information the current object |
| 67 | + /// </summary> |
| 68 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 69 | + public virtual void Serialize(ISerializationWriter writer) |
| 70 | + { |
| 71 | + _ = writer ?? throw new ArgumentNullException(nameof(writer)); |
| 72 | + writer.WriteGuidValue("Id", Id); |
| 73 | + writer.WriteStringValue("ServerRelativeUrl", ServerRelativeUrl); |
| 74 | + writer.WriteStringValue("Title", Title); |
| 75 | + writer.WriteAdditionalData(AdditionalData); |
| 76 | + } |
| 77 | + } |
| 78 | +} |
| 79 | +#pragma warning restore CS0618 |
0 commit comments