code: def to_dict(self):
          
          rv = {'code': self.code}
          if not self.is_native():
              rv['issuer'] = self.issuer
              rv['type'] = self.type
          else:
              rv['type'] = 'native'
          return rv
docs: Generate a dict for this object's attributes.
  
          :return: A dict representing an :class:`Asset`