title: Serialize/Deserialize dynamic property name using JSON.NET
body: <p>I have the following class:</p>
  
  <pre><code>public class MyRequest
  {
      public string Type {get;set;}
      public string Source {get;set;}
  }
  </code></pre>
  
  <p>I would like to serialize/deserialize the value for <code>Source</code> from the JSON field named the value of <code>Type</code>, for example:</p>
  
  <pre><code>{
      "type": "bank",
      "bank": "Some value"
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>{
      "type": "card",
      "card": "Some value"
  }
  </code></pre>
  
  <p>Where both bind to the <code>Source</code> property.</p>