listZones method
Implementation
Future<ListZonesResp> listZones(ListZonesReq? req) async {
oprot.writeMessageBegin(
new TMessage("listZones", TMessageType.CALL, nextSeqid()));
listZones_args args = new listZones_args();
args.req = req;
args.write(oprot);
oprot.writeMessageEnd();
await oprot.trans_.flush();
TMessage msg = iprot.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
TApplicationError error = TApplicationError.read(iprot);
iprot.readMessageEnd();
throw error;
}
listZones_result result = new listZones_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"listZones failed: unknown result");
}