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