public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("SmartStateTransInfo");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (__isset.success)
         {
             field.Name = "success";
             field.Type = TType.Bool;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             oprot.WriteBool(Success);
             oprot.WriteFieldEnd();
         }
         if (ExecutionFee != null && __isset.executionFee)
         {
             field.Name = "executionFee";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             ExecutionFee.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ReturnValue != null && __isset.returnValue)
         {
             field.Name = "returnValue";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             ReturnValue.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (StartTransaction != null && __isset.startTransaction)
         {
             field.Name = "startTransaction";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             StartTransaction.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("SmartStateTransInfo(");
            bool          __first = true;

            if (__isset.success)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Success: ");
                __sb.Append(Success);
            }
            if (ExecutionFee != null && __isset.executionFee)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ExecutionFee: ");
                __sb.Append(ExecutionFee == null ? "<null>" : ExecutionFee.ToString());
            }
            if (ReturnValue != null && __isset.returnValue)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ReturnValue: ");
                __sb.Append(ReturnValue == null ? "<null>" : ReturnValue.ToString());
            }
            if (StartTransaction != null && __isset.startTransaction)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("StartTransaction: ");
                __sb.Append(StartTransaction == null ? "<null>" : StartTransaction.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }