title: Deserialize json to object in c# does not map values
body: <p>I'm trying to deserialize a json string by using the Jsonconverter. I have all the values inside the json, I also want to mention that, that specific json is being generated from the swagger, so when i send a payload to the API it maps it into the object model. </p>
  
  <p>However, when i try to deserialize it into the same object, everything is null. What I am doing wrong?</p>
  
  <p>This is how i deserialize it</p>
  
  <pre><code>EmailUrlDto testEmailUrlDto = JsonConvert.DeserializeObject&lt;EmailUrlDto&gt;(jsonString);
  </code></pre>
  
  <p>JSON format</p>
  
  <pre><code>  {
      "templateUrl": "https://some.blob.url.here.com",
      "paramsHtml": [
    {
      "name": "{{miniAdmin}}",
      "value": "Heyth is Admin!"
    },
    {
     "name": "{{cliBuTree}}",
     "value": "I`m a treeee!"
   }
   ],
   "from": "string",
   "subject": "string",
   "message": "string",
   "isHtmlBody": true,
   "recipients": [
     {
       "recipient": "some.name@lol.com"
     }
   ],
    "cCRecipients": [
      {
        "recipient": "string"
      }
    ],
    "bCCRecipients": [
      {
        "recipient": "string"
      }
    ]
  }
  </code></pre>
  
  <p>EmailUrlDto </p>
  
  <pre><code>public class EmailUrlDto : EmailDto
  {
      [Required]
      [JsonPropertyName("templateUrl")]
      public string TemplateUrl { get; set; }
  
      [Required]
      [JsonPropertyName("paramsHtml")]
      public ParamsHtmlTemplateDto[] ParamsHtml { get; set; }
  }
  </code></pre>
  
  <p>EmailDto</p>
  
  <pre><code>public class EmailDto : Dto
  {
  
      [JsonIgnore]
      public int Id { get; set; }
  
  
      [JsonPropertyName("from")]
      [MaxLength(250)]
      public string From { get; set; }
  
  
      [JsonPropertyName("subject")]
      [Required]
      [MaxLength(300)]
      public string Subject { get; set; }
  
  
      [JsonPropertyName("message")]
      [Required]
      public string Message { get; set; }
  
  
      [JsonPropertyName("isHtmlBody")]
      public bool IsHtmlBody { get; set; }
  
  
      [JsonIgnore]
      public EStatus EmlStatus { get; set; }
  
  
      [JsonPropertyName("smtp")]
      public SMTPConfigurationDto Smtp { get; set; }
  
  
      [JsonIgnore]
      public AttachmentDto[] Attachments { get; set; }
  
  
      [JsonPropertyName("recipients")]
      public ToRecipientDto[] Recipients { get; set; }
  
  
      [JsonPropertyName("cCRecipients")]
      public CcRecipientDto[] CCRecipients { get; set; }
  
  
      [JsonPropertyName("bCCRecipients")]
      public BccRecipientDto[] BCCRecipients { get; set; }
  
  
      [JsonIgnore]
      public LogDto[] Logs { get; set; }
  
  }
  </code></pre>