code: def restore_type(self, type):
          
  
          # Mapping
          mapping = {
              'BOOLEAN': 'boolean',
              'DATE': 'date',
              'DATETIME': 'datetime',
              'INTEGER': 'integer',
              'FLOAT': 'number',
              'STRING': 'string',
              'TIME': 'time',
          }
  
          # Not supported type
          if type not in mapping:
              message = 'Type %s is not supported' % type
              raise tableschema.exceptions.StorageError(message)
  
          return mapping[type]
docs: Restore type from BigQuery