code: def Serialize(self, writer: BinaryWriter):
          
          byt = None
          if self.Type == StateType.Account:
              byt = b'\x40'
          elif self.Type == StateType.Validator:
              byt = b'\x48'
          writer.WriteByte(byt)
          writer.WriteVarBytes(self.Key)
          writer.WriteVarString(self.Field)
          writer.WriteVarBytes(self.Value)
docs: Serialize full object.
  
          Args:
              writer (neo.IO.BinaryWriter):