@classmethod
    def to_list(cls, iterable=None, fields=None):
        use_iterable = iterable or cls.all()
        return [cls.single.to_dict(o, fields=fields) for o in use_iterable]
Serialize iterable to list of dicts
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/objects/base.py/NailgunCollection.to_list