code: def Serialize(self, writer: BinaryWriter):
          
          super(ValidatorState, self).Serialize(writer)
          self.PublicKey.Serialize(writer)
          writer.WriteBool(self.Registered)
          writer.WriteFixed8(self.Votes)
docs: Serialize full object.
  
          Args:
              writer (neo.IO.BinaryWriter):