code: def Serialize(self, writer):
          
          super(AssetState, self).Serialize(writer)
          writer.WriteUInt256(self.AssetId)
          writer.WriteByte(self.AssetType)
          writer.WriteVarString(self.Name)
  
          if self.Amount.value > -1:
              writer.WriteFixed8(self.Amount, unsigned=True)
          else:
              writer.WriteFixed8(self.Amount)
  
          if type(self.Available) is not Fixed8:
              raise Exception("AVAILABLE IS NOT FIXED 8!")
          writer.WriteFixed8(self.Available, unsigned=True)
          writer.WriteByte(self.Precision)
          writer.WriteByte(b'\x00')
          writer.WriteFixed8(self.Fee)
          writer.WriteUInt160(self.FeeAddress)
          self.Owner.Serialize(writer)
          writer.WriteUInt160(self.Admin)
          writer.WriteUInt160(self.Issuer)
          writer.WriteUInt32(self.Expiration)
          writer.WriteBool(self.IsFrozen)
docs: Serialize full object.
  
          Args:
              writer (neo.IO.BinaryWriter):