public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("GetSquareChatMembersResponse");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (SquareChatMembers != null && __isset.squareChatMembers)
         {
             field.Name = "squareChatMembers";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             SquareChatMembers.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ContinuationToken != null && __isset.continuationToken)
         {
             field.Name = "continuationToken";
             field.Type = TType.String;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(ContinuationToken);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }