code: def Serialize(self, writer):
          
          writer.WriteUInt32(self.Magic)
          writer.WriteFixedString(self.Command, 12)
          writer.WriteUInt32(len(self.Payload))
          writer.WriteUInt32(self.Checksum)
          writer.WriteBytes(self.Payload)
docs: Serialize object.
  
          Args:
              writer (neo.IO.BinaryWriter):