code: def ToJson(self):
          
          jsn = super(RegisterTransaction, self).ToJson()
  
          asset = {
              'type': self.AssetType,
              'name': self.Name.decode('utf-8'),
              'amount': self.Amount.value,
              'precision': self.Precision if type(self.Precision) is int else self.Precision.decode('utf-8'),
              'owner': self.Owner.ToString(),
              'admin': Crypto.ToAddress(self.Admin)
          }
          jsn['asset'] = asset
  
          return jsn
docs: Convert object members to a dictionary that can be parsed as JSON.
  
          Returns:
               dict: