//
#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 BrowserTest : 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 agif property
public bool? Agif { get; set; }
/// The browser property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Browser { get; set; }
#nullable restore
#else
public string Browser { get; set; }
#endif
/// The colors property
public bool? Colors { get; set; }
/// The createdOn property
public DateTimeOffset? CreatedOn { get; set; }
/// The flash property
public bool? Flash { get; set; }
/// The frames property
public bool? Frames { get; set; }
/// The gif87 property
public bool? Gif87 { get; set; }
/// The gif89 property
public bool? Gif89 { get; set; }
/// The id property
public int? Id { get; set; }
/// The jpeg property
public bool? Jpeg { get; set; }
/// The js property
public bool? Js { get; set; }
/// The os property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Os { get; set; }
#nullable restore
#else
public string Os { get; set; }
#endif
/// The platform property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Platform { get; set; }
#nullable restore
#else
public string Platform { get; set; }
#endif
/// The png property
public bool? Png { get; set; }
/// The pngt property
public bool? Pngt { get; set; }
/// The table property
public bool? Table { get; set; }
/// The updatedOn property
public DateTimeOffset? UpdatedOn { get; set; }
/// The userAgent property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserAgent { get; set; }
#nullable restore
#else
public string UserAgent { 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
///
/// Instantiates a new and sets the default values.
///
public BrowserTest()
{
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.BrowserTest CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Marechai.App.Models.BrowserTest();
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
{ "agif", n => { Agif = n.GetBoolValue(); } },
{ "browser", n => { Browser = n.GetStringValue(); } },
{ "colors", n => { Colors = n.GetBoolValue(); } },
{ "createdOn", n => { CreatedOn = n.GetDateTimeOffsetValue(); } },
{ "flash", n => { Flash = n.GetBoolValue(); } },
{ "frames", n => { Frames = n.GetBoolValue(); } },
{ "gif87", n => { Gif87 = n.GetBoolValue(); } },
{ "gif89", n => { Gif89 = n.GetBoolValue(); } },
{ "id", n => { Id = n.GetIntValue(); } },
{ "jpeg", n => { Jpeg = n.GetBoolValue(); } },
{ "js", n => { Js = n.GetBoolValue(); } },
{ "os", n => { Os = n.GetStringValue(); } },
{ "platform", n => { Platform = n.GetStringValue(); } },
{ "png", n => { Png = n.GetBoolValue(); } },
{ "pngt", n => { Pngt = n.GetBoolValue(); } },
{ "table", n => { Table = n.GetBoolValue(); } },
{ "updatedOn", n => { UpdatedOn = n.GetDateTimeOffsetValue(); } },
{ "userAgent", n => { UserAgent = n.GetStringValue(); } },
{ "version", n => { Version = n.GetStringValue(); } },
};
}
///
/// 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.WriteBoolValue("agif", Agif);
writer.WriteStringValue("browser", Browser);
writer.WriteBoolValue("colors", Colors);
writer.WriteDateTimeOffsetValue("createdOn", CreatedOn);
writer.WriteBoolValue("flash", Flash);
writer.WriteBoolValue("frames", Frames);
writer.WriteBoolValue("gif87", Gif87);
writer.WriteBoolValue("gif89", Gif89);
writer.WriteIntValue("id", Id);
writer.WriteBoolValue("jpeg", Jpeg);
writer.WriteBoolValue("js", Js);
writer.WriteStringValue("os", Os);
writer.WriteStringValue("platform", Platform);
writer.WriteBoolValue("png", Png);
writer.WriteBoolValue("pngt", Pngt);
writer.WriteBoolValue("table", Table);
writer.WriteDateTimeOffsetValue("updatedOn", UpdatedOn);
writer.WriteStringValue("userAgent", UserAgent);
writer.WriteStringValue("version", Version);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618