title: how to map complex type in Attribute with jsonapi 1.0
body: <p>I have a class <code>SubscriptionType</code> and in its attribute is a complex class called <code>InfoText</code>, <code>LongInfoText</code> and <code>Name</code> they all have <code>en</code> and <code>ur</code> property.
  when i use <code>JsonApiNet 3.0.0</code> library to deserialize my json from a wep api. all objects are retrieved expect the complex type that exists in attributes. null values are shown.
  I have tried to use my own resolver but it didn't not work. can someone help me in this. Thank you</p>
  <p><strong>My resolver</strong></p>
  <pre><code> public class NamingThingsIsHardResolver : JsonApiPropertyResolver
      {
          public override PropertyInfo ResolveJsonApiAttribute(Type type, string attributeName)
          {
              if (type == typeof(SubscriptionType) &amp;&amp; attributeName == &quot;name&quot;)
              {
                  return type.GetProperty(&quot;Name&quot;);
              }
  
              return base.ResolveJsonApiAttribute(type, attributeName);
          }
      }
  </code></pre>
  <p><strong>my type</strong></p>
  <pre><code>public class Subscription
  {
      public string Id { get; set; }
      public string ContractId { get; set; }
      public string PaymentType { get; set; }
      public string Status { get; set; }
      public SubscriptionType SubscriptionType { get; set; }
  }
      public class SubscriptionType
  {
      public string Id { get; set; }      
      public string BusinessModelType { get; set; }
      public InfoText InfoText;
      public string LineType { get; set; }
      public LongInfoText LongInfoText;
       //[JsonApiRelationship(&quot;name&quot;)] // [JsonApiAttribute(&quot;name&quot;)] //also not working
      public string Name;
  }
  </code></pre>
  <p><strong>my complex type</strong></p>
  <pre><code>public class Name 
  { 
      public string En { get; set; } 
      public string Ur { get; set; } 
  }
  
   public class InfoText
      {
          public string En { get; set; }
          public string Ur { get; set; }
      }
  
   public class LongInfoText
      {
          public string En { get; set; }
          public string Ur { get; set; }
      }
  </code></pre>
  <p><strong>my json</strong>
  this json is simplified. some attributes and relationships are removed</p>
  <pre><code> {
      &quot;data&quot;: [
          {
              &quot;attributes&quot;: {
                  &quot;contract-id&quot;: &quot;103&quot;,
                  &quot;payment-type&quot;: &quot;prepaid&quot;,
                  &quot;status&quot;: &quot;active&quot;,
              },
              &quot;id&quot;: &quot;103&quot;,
              &quot;links&quot;: {
                  &quot;self&quot;: &quot;/api/v1/subscriptions/103&quot;
              },
              &quot;relationships&quot;: {              
                  &quot;subscription-type&quot;: {
                      &quot;data&quot;: {
                          &quot;id&quot;: &quot;1&quot;,
                          &quot;type&quot;: &quot;subscription-types&quot;
                      },
                      &quot;links&quot;: {
                          &quot;related&quot;: &quot;/api/v1/subscriptions/103/subscription-type&quot;
                      }
                  }
                  
              },
              &quot;type&quot;: &quot;subscriptions&quot;
          }
      ],
      &quot;included&quot;: [
          {
              &quot;attributes&quot;: {
                  &quot;business-model-type&quot;: &quot;prepaid&quot;,
                  &quot;info-text&quot;: {
                      &quot;en&quot;: null,
                      &quot;ur&quot;: null
                  },
                  &quot;line-type&quot;: &quot;mobile&quot;,
                  &quot;long-info-text&quot;: {
                      &quot;en&quot;: null,
                      &quot;ur&quot;: null
                  },
                  &quot;name&quot;: {
                      &quot;en&quot;: &quot;Start prepaid&quot;,
                      &quot;ur&quot;: &quot;Start Prepaid&quot;
                  }
              },
              &quot;id&quot;: &quot;1&quot;,
              &quot;links&quot;: {
                  &quot;self&quot;: &quot;/api/v1/subscription-types/1&quot;
              },
              &quot;relationships&quot;: {
                  &quot;billing-rate-plans&quot;: {
                      &quot;links&quot;: {
                          &quot;related&quot;: &quot;/api/v1/subscription-types/1/billing-rate-plans&quot;
                      }
                  }
              },
              &quot;type&quot;: &quot;subscription-types&quot;
          }
      ]
  }
  </code></pre>