class_docstr: Data Model
class_docstr_tok: ["Data","Model"]
code: def to_dict(self, only=None, except_=None):
      prop_values = {
          v: getattr(self, k) for k, v in self._get_data_props().items()
      }
      return {
          k: self._to_base_type(v)
          for k, v in prop_values.items()
          if v is not None
          and (not only or k in only)
          and (not except_ or k not in except_)
      }
  
imports: import keyword
  import enum
  import json
  from datetime import datetime
  import jsonschema
  from enum import Enum
  import six
label_desc: Use image node_id 3 for calling the DataModel obj's underlying member method code with example usage: obj.to_dict(only, except_) and returns: unknown