docs: @Override
      public String encode() throws IOException {
          FastStringWriter fsw = new FastStringWriter();
  
          try {
              fsw.write(super.encode());
  
              if (this.type != null) {
                  fsw.write(",\"type\":\"" + this.type + "\"");
              }
  
              if (this.ticks != null) {
                  fsw.write(",\"ticks\":{");
                  fsw.write(this.ticks.encode());
                  fsw.write("}");
              }
          }
          finally {
              fsw.close();
          }
  
          return fsw.toString();
      }