def to_map()

in catalog-api/python/pyodps_catalog/models.py [0:0]


    def to_map(self):
        _map = super().to_map()
        if _map is not None:
            return _map

        result = dict()
        if self.type is not None:
            result['type'] = self.type
        if self.fields is not None:
            result['fields'] = self.fields
        if self.num_buckets is not None:
            result['numBuckets'] = self.num_buckets
        return result