code: def to_import(import_):
          
          from sevenbridges.models.storage_import import Import
          if not import_:
              raise SbgError('Import is required!')
          elif isinstance(import_, Import):
              return import_.id
          elif isinstance(import_, six.string_types):
              return import_
          else:
              raise SbgError('Invalid import parameter!')
docs: Serializes import to id string
          :param import_: object to serialize
          :return: string id