code: def ToJson(self):
          
          jsn = {}
          jsn["txid"] = self.Hash.To0xString()
          jsn["size"] = self.Size()
          jsn["type"] = TransactionType.ToName(self.Type)
          jsn["version"] = self.Version
          jsn["attributes"] = [attr.ToJson() for attr in self.Attributes]
          jsn["vout"] = [out.ToJson(i) for i, out in enumerate(self.outputs)]
          jsn["vin"] = [input.ToJson() for input in self.inputs]
          jsn["sys_fee"] = self.SystemFee().ToNeoJsonString()
          jsn["net_fee"] = self.NetworkFee().ToNeoJsonString()
          jsn["scripts"] = [script.ToJson() for script in self.scripts]
          return jsn
docs: Convert object members to a dictionary that can be parsed as JSON.
  
          Returns:
               dict: