def MakeMetadataDict(self):
    sub_dict = {}
    for attr_name in Subscription._JSON_ATTRIBUTES:
      util.SetIfNotNone(sub_dict, attr_name, getattr(self, attr_name, None))
    if self.extra_info:
      sub_dict['extra_info'] = deepcopy(self.extra_info)
    return sub_dict
Project a subset of subscription attributes that can be provided to the user.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/subscription.py/Subscription.MakeMetadataDict