// <auto-generated />
//
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
//    using CreateLabel_ML;
//
//    var clsEnvioPdf99Minutos = ClsEnvioPdf99Minutos.FromJson(jsonString);

namespace CreateLabel_ML
{
    using System;
    using System.Collections.Generic;

    using System.Globalization;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Converters;

    public partial class AttributesRespuestaEtiqueta99Minutos
    {
        [JsonProperty("message")]
        public List<Message> Message { get; set; }
    }

    public partial class Message
    {
        [JsonProperty("message")]
        public string MessageMessage { get; set; }

        [JsonProperty("reason")]
        public Reason Reason { get; set; }
    }

    public partial class Reason
    {
        [JsonProperty("counter")]
        public string Counter { get; set; }

        [JsonProperty("trackingid")]
        public string Trackingid { get; set; }

        [JsonProperty("clienid")]
        public string Clienid { get; set; }

        [JsonProperty("created")]
        public DateTimeOffset Created { get; set; }
    }

    public partial class ClsEnvioPdf99Minutos
    {
        public static ClsEnvioPdf99Minutos FromJson(string json) => JsonConvert.DeserializeObject<ClsEnvioPdf99Minutos>(json, Converter.Settings);
    }

    public static class Serialize
    {
        public static string ToJson(this ClsEnvioPdf99Minutos self) => JsonConvert.SerializeObject(self, CreateLabel_ML.Converter.Settings);
    }

    internal static class Converter
    {
        public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
        {
            MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
            DateParseHandling = DateParseHandling.None,
            Converters =
            {
                new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
            },
        };
    }
}
