write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.zones != null) {
oprot.writeFieldBegin(_ZONES_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.zones?.length));
for (var elem231 in this.zones ?? []) {
oprot.writeBinary(elem231);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.zone_name != null) {
oprot.writeFieldBegin(_ZONE_NAME_FIELD_DESC);
oprot.writeBinary(this.zone_name);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}