write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  oprot.writeStructBegin(_STRUCT_DESC);

  if (this.isSetSuccess()) {
    oprot.writeFieldBegin(_SUCCESS_FIELD_DESC);
    this.success?.write(oprot);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}