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.result != null) {
    oprot.writeFieldBegin(_RESULT_FIELD_DESC);
    this.result?.write(oprot);
    oprot.writeFieldEnd();
  }
  if (this.key_values != null) {
    oprot.writeFieldBegin(_KEY_VALUES_FIELD_DESC);
    {
      oprot.writeMapBegin(
          new TMap(TType.STRING, TType.STRING, this.key_values?.length));
      for (var elem269 in this.key_values?.keys ?? <Int8List>[]) {
        oprot.writeBinary(elem269);
        oprot.writeBinary(this.key_values?[elem269]);
      }
      oprot.writeMapEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}