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.names != null) {
    oprot.writeFieldBegin(_NAMES_FIELD_DESC);
    {
      oprot.writeListBegin(new TList(TType.STRING, this.names?.length));
      for (var elem219 in this.names ?? []) {
        oprot.writeBinary(elem219);
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}