title: Map nested class models
body: <p><strong>From a Web API Call, I received the Response and stored it in this model</strong> </p>
  
  <pre><code>public class DetailedTogglResponse
  {
      public List&lt;TogglDetailedReport&gt; data { get; set; }
      public string total_grand { get; set; }
      public string total_billable { get; set; }
  }
  </code></pre>
  
  <p>Here is the code of the said Model :</p>
  
  <pre><code>public class TogglDetailedReport
  {
      public int id { get; set; }
      public int pid { get; set; }
      public int? tid { get; set; }
      public int uid { get; set; }
      public String description { get; set; }
      public DateTime start { get; set; }
      public DateTime end { get; set; }
      public int dur { get; set; }
      public String client { get; set; }
      public Decimal billable { get; set; }
      public bool is_billable { get; set; }
      public String cur { get; set; }
      public List&lt;String&gt; tags { get; set; }
  }
  
  public class Tags
  {
      public String TagName { get; set; }
  }
  </code></pre>
  
  <p>Now, I want to "Auto Map" with <code>TogglDetailedReport</code>, <code>DetailedReport</code> (part of the code only, doesn't show <code>List&lt;Tags&gt; tags { get; set; }</code>)</p>
  
  <p>How to "Auto Map" TogglDetailedReport to DetailedReport ?</p>
  
  <pre><code>public class DetailedReport
  {
      public int TimeEntryId { get; set; } // TimeEntryId (Primary key)
      public int ProjectId { get; set; } // ProjectId
      public int? TaskId { get; set; } // TaskId
      public int UserId { get; set; } // UserId
      public string Description { get; set; } // Description (length: 250)
      public string ClientName { get; set; } // ClientName (length: 50)
      public System.DateTime StartTime { get; set; } // StartTime
      public System.DateTime EndTime { get; set; } // EndTime
      public int Duration { get; set; } // Duration
      public decimal Billable { get; set; } // Billable
      public bool IsBillable { get; set; } // IsBillable
      public string Currency { get; set; } // Currency (length: 10)
      public System.DateTime CreatedDate { get; set; } // CreatedDate
  }
  </code></pre>