write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.result != null) {
oprot.writeFieldBegin(_RESULT_FIELD_DESC);
this.result?.write(oprot);
oprot.writeFieldEnd();
}
if (isSetProps()) {
if (this.props != null) {
oprot.writeFieldBegin(_PROPS_FIELD_DESC);
this.props?.write(oprot);
oprot.writeFieldEnd();
}
}
if (this.cursors != null) {
oprot.writeFieldBegin(_CURSORS_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.I32, TType.STRUCT, this.cursors?.length));
for (var elem245 in this.cursors?.keys ?? <int>[]) {
oprot.writeI32(elem245);
this.cursors?[elem245]?.write(oprot);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}