write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  if (this.src != null) {
    oprot.writeFieldBegin(_SRC_FIELD_DESC);
    this.src?.write(oprot);
    oprot.writeFieldEnd();
  }
  if (this.steps != null) {
    oprot.writeFieldBegin(_STEPS_FIELD_DESC);
    {
      oprot.writeListBegin(new TList(TType.STRUCT, this.steps?.length));
      for (var elem63 in this.steps ?? []) {
        elem63.write(oprot);
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}