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);
  oprot.writeFieldBegin(_TAG_FIELD_DESC);
  oprot.writeI32(this.tag);
  oprot.writeFieldEnd();
  if (this.props != null) {
    oprot.writeFieldBegin(_PROPS_FIELD_DESC);
    {
      oprot.writeListBegin(new TList(TType.STRING, this.props?.length));
      for (var elem17 in this.props ?? []) {
        oprot.writeBinary(elem17);
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}