code: def from_response(self, response):
          
          for name in self.PROPERTIES:
              attr = '_{0}'.format(name)
              transform = self.PROPERTIES[name].get('transform', None)
              value = response.get(name, None)
              if transform and transform == TRANSFORM.TIME and value:
                  setattr(self, attr, dateutil.parser.parse(value))
              if isinstance(value, int) and value == 0:
                  continue  # skip attribute
              else:
                  setattr(self, attr, value)
  
          return self
docs: Populates a given objects attributes from a parsed JSON API response.
          This helper handles all necessary type coercions as it assigns
          attribute values.