write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.key != null) {
oprot.writeFieldBegin(_KEY_FIELD_DESC);
this.key?.write(oprot);
oprot.writeFieldEnd();
}
if (this.props != null) {
oprot.writeFieldBegin(_PROPS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.props?.length));
for (var elem107 in this.props ?? []) {
elem107.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}