write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.host != null) {
oprot.writeFieldBegin(_HOST_FIELD_DESC);
this.host?.write(oprot);
oprot.writeFieldEnd();
}
if (this.checkpoints != null) {
oprot.writeFieldBegin(_CHECKPOINTS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.checkpoints?.length));
for (var elem269 in this.checkpoints ?? []) {
elem269.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}