write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.root != null) {
oprot.writeFieldBegin(_ROOT_FIELD_DESC);
oprot.writeBinary(this.root);
oprot.writeFieldEnd();
}
if (this.data != null) {
oprot.writeFieldBegin(_DATA_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.data?.length));
for (var elem67 in this.data ?? []) {
oprot.writeBinary(elem67);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}