import DnsRecordType from "./DnsMonitor/DnsRecordType";
export class MonitorStepDnsMonitorUtil {
    static getDefault() {
        return {
            queryName: "",
            recordType: DnsRecordType.A,
            hostname: "",
            port: 53,
            timeout: 5000,
            retries: 3,
        };
    }
    static fromJSON(json) {
        return {
            queryName: json["queryName"] || "",
            recordType: json["recordType"] || DnsRecordType.A,
            hostname: json["hostname"] || undefined,
            port: json["port"] || 53,
            timeout: json["timeout"] || 5000,
            retries: json["retries"] || 3,
        };
    }
    static toJSON(monitor) {
        return {
            queryName: monitor.queryName,
            recordType: monitor.recordType,
            hostname: monitor.hostname,
            port: monitor.port,
            timeout: monitor.timeout,
            retries: monitor.retries,
        };
    }
}
//# sourceMappingURL=MonitorStepDnsMonitor.js.map