title: Is there a Dart function to check if an object has a particular attribute or method?
body: <p>Problems: </p>
  
  <p>i) When checking if the normal Class object in <strong>Dart</strong> has particular property?</p>
  
  <p>ii) When decoding JSON response body from api, How to check if an object has particular properties in <strong>DART</strong>?</p>
  
  <p>e.g. In Javascript, there is "<em>hasOwnProperty</em>"</p>
  
  <pre><code>if (obj.hasOwnProperty('property')) {
      // do something
  }
  </code></pre>