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