write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.zone_name != null) {
oprot.writeFieldBegin(_ZONE_NAME_FIELD_DESC);
oprot.writeBinary(this.zone_name);
oprot.writeFieldEnd();
}
if (this.zone_items != null) {
oprot.writeFieldBegin(_ZONE_ITEMS_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.STRING, TType.LIST, this.zone_items?.length));
for (var elem240 in this.zone_items?.keys ?? <Int8List>[]) {
oprot.writeBinary(elem240);
{
oprot.writeListBegin(
new TList(TType.STRUCT, this.zone_items?[elem240]?.length));
for (var elem241
in this.zone_items?[elem240] ?? <t_nebula.HostAddr>[]) {
elem241.write(oprot);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}