write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_SESSION_ID_FIELD_DESC);
oprot.writeI64(this.sessionId);
oprot.writeFieldEnd();
if (this.stmt != null) {
oprot.writeFieldBegin(_STMT_FIELD_DESC);
oprot.writeBinary(this.stmt);
oprot.writeFieldEnd();
}
if (this.parameterMap != null) {
oprot.writeFieldBegin(_PARAMETER_MAP_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.STRING, TType.STRUCT, this.parameterMap?.length));
for (var elem39 in this.parameterMap?.keys ?? <Int8List>[]) {
oprot.writeBinary(elem39);
this.parameterMap?[elem39]?.write(oprot);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}