docs: def metainfo_to_dict(self) -> dict:
          '''encode deck into dictionary'''
  
          r = {
              "version": self.version,
              "name": self.name,
              "number_of_decimals": self.number_of_decimals,
              "issue_mode": self.issue_mode
          }
  
          if self.asset_specific_data:
              r.update({'asset_specific_data': self.asset_specific_data})
  
          return r