def METHOD_NAME(self):
    ret = {}
    if 'package_api' in self.mirrors:
        ret['package_api'] = map(lambda x: x.toH(), self.mirrors['package_api'])
    if 'mirror' in self.mirrors:
        ret['mirror'] = map(lambda x: x.toH(), self.mirrors['mirror'])
    return ret