//
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
using System;
namespace Marechai.App.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class SoftwareVariantDto : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
/// The catalogue_number property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? CatalogueNumber { get; set; }
#nullable restore
#else
public string CatalogueNumber { get; set; }
#endif
/// The distribution_mode property
public int? DistributionMode { get; set; }
/// The family property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Family { get; set; }
#nullable restore
#else
public string Family { get; set; }
#endif
/// The id property
public int? Id { get; set; }
/// The introduced property
public DateTimeOffset? Introduced { get; set; }
/// The minimum_memory property
public int? MinimumMemory { get; set; }
/// The name property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Name { get; set; }
#nullable restore
#else
public string Name { get; set; }
#endif
/// The parent property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Parent { get; set; }
#nullable restore
#else
public string Parent { get; set; }
#endif
/// The parent_id property
public int? ParentId { get; set; }
/// The part_number property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PartNumber { get; set; }
#nullable restore
#else
public string PartNumber { get; set; }
#endif
/// The product_code property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ProductCode { get; set; }
#nullable restore
#else
public string ProductCode { get; set; }
#endif
/// The recommended_memory property
public int? RecommendedMemory { get; set; }
/// The required_storage property
public int? RequiredStorage { get; set; }
/// The serial_number property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SerialNumber { get; set; }
#nullable restore
#else
public string SerialNumber { get; set; }
#endif
/// The software_version property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SoftwareVersion { get; set; }
#nullable restore
#else
public string SoftwareVersion { get; set; }
#endif
/// The version property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Version { get; set; }
#nullable restore
#else
public string Version { get; set; }
#endif
/// The version_id property
public int? VersionId { get; set; }
///
/// Instantiates a new and sets the default values.
///
public SoftwareVariantDto()
{
AdditionalData = new Dictionary();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
public static global::Marechai.App.Models.SoftwareVariantDto CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Marechai.App.Models.SoftwareVariantDto();
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
{ "catalogue_number", n => { CatalogueNumber = n.GetStringValue(); } },
{ "distribution_mode", n => { DistributionMode = n.GetIntValue(); } },
{ "family", n => { Family = n.GetStringValue(); } },
{ "id", n => { Id = n.GetIntValue(); } },
{ "introduced", n => { Introduced = n.GetDateTimeOffsetValue(); } },
{ "minimum_memory", n => { MinimumMemory = n.GetIntValue(); } },
{ "name", n => { Name = n.GetStringValue(); } },
{ "parent", n => { Parent = n.GetStringValue(); } },
{ "parent_id", n => { ParentId = n.GetIntValue(); } },
{ "part_number", n => { PartNumber = n.GetStringValue(); } },
{ "product_code", n => { ProductCode = n.GetStringValue(); } },
{ "recommended_memory", n => { RecommendedMemory = n.GetIntValue(); } },
{ "required_storage", n => { RequiredStorage = n.GetIntValue(); } },
{ "serial_number", n => { SerialNumber = n.GetStringValue(); } },
{ "software_version", n => { SoftwareVersion = n.GetStringValue(); } },
{ "version", n => { Version = n.GetStringValue(); } },
{ "version_id", n => { VersionId = n.GetIntValue(); } },
};
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("catalogue_number", CatalogueNumber);
writer.WriteIntValue("distribution_mode", DistributionMode);
writer.WriteStringValue("family", Family);
writer.WriteIntValue("id", Id);
writer.WriteDateTimeOffsetValue("introduced", Introduced);
writer.WriteIntValue("minimum_memory", MinimumMemory);
writer.WriteStringValue("name", Name);
writer.WriteStringValue("parent", Parent);
writer.WriteIntValue("parent_id", ParentId);
writer.WriteStringValue("part_number", PartNumber);
writer.WriteStringValue("product_code", ProductCode);
writer.WriteIntValue("recommended_memory", RecommendedMemory);
writer.WriteIntValue("required_storage", RequiredStorage);
writer.WriteStringValue("serial_number", SerialNumber);
writer.WriteStringValue("software_version", SoftwareVersion);
writer.WriteStringValue("version", Version);
writer.WriteIntValue("version_id", VersionId);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618