code: def ToJson(self, index):
          
          return {
              'n': index,
              'asset': self.AssetId.To0xString(),
              'value': self.Value.ToNeoJsonString(),
              'address': self.Address
          }
docs: Convert object members to a dictionary that can be parsed as JSON.
          Args:
              index (int): The index of the output in a transaction
  
          Returns:
               dict: