write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_CODE_FIELD_DESC);
oprot.writeI32(this.code);
oprot.writeFieldEnd();
if (this.info != null) {
oprot.writeFieldBegin(_INFO_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.info?.length));
for (var elem301 in this.info ?? []) {
elem301.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}