import ExternalStatusPageProviderType from "./ExternalStatusPageProviderType";
export class MonitorStepExternalStatusPageMonitorUtil {
    static getDefault() {
        return {
            statusPageUrl: "",
            provider: ExternalStatusPageProviderType.Auto,
            componentName: undefined,
            timeout: 10000,
            retries: 3,
        };
    }
    static fromJSON(json) {
        return {
            statusPageUrl: json["statusPageUrl"] || "",
            provider: json["provider"] ||
                ExternalStatusPageProviderType.Auto,
            componentName: json["componentName"] || undefined,
            timeout: json["timeout"] || 10000,
            retries: json["retries"] || 3,
        };
    }
    static toJSON(monitor) {
        return {
            statusPageUrl: monitor.statusPageUrl,
            provider: monitor.provider,
            componentName: monitor.componentName,
            timeout: monitor.timeout,
            retries: monitor.retries,
        };
    }
}
//# sourceMappingURL=MonitorStepExternalStatusPageMonitor.js.map