"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Montelo
 * Documentation for the Montelo API.
 *
 * The version of the OpenAPI document: 1.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthControllerCheck200ResponseToJSON = exports.HealthControllerCheck200ResponseFromJSONTyped = exports.HealthControllerCheck200ResponseFromJSON = exports.instanceOfHealthControllerCheck200Response = void 0;
const runtime_1 = require("../runtime");
const HealthControllerCheck200ResponseInfoValue_1 = require("./HealthControllerCheck200ResponseInfoValue");
/**
 * Check if a given object implements the HealthControllerCheck200Response interface.
 */
function instanceOfHealthControllerCheck200Response(value) {
    let isInstance = true;
    return isInstance;
}
exports.instanceOfHealthControllerCheck200Response = instanceOfHealthControllerCheck200Response;
function HealthControllerCheck200ResponseFromJSON(json) {
    return HealthControllerCheck200ResponseFromJSONTyped(json, false);
}
exports.HealthControllerCheck200ResponseFromJSON = HealthControllerCheck200ResponseFromJSON;
function HealthControllerCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
        'info': !(0, runtime_1.exists)(json, 'info') ? undefined : (json['info'] === null ? null : (0, runtime_1.mapValues)(json['info'], HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueFromJSON)),
        'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (json['error'] === null ? null : (0, runtime_1.mapValues)(json['error'], HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueFromJSON)),
        'details': !(0, runtime_1.exists)(json, 'details') ? undefined : ((0, runtime_1.mapValues)(json['details'], HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueFromJSON)),
    };
}
exports.HealthControllerCheck200ResponseFromJSONTyped = HealthControllerCheck200ResponseFromJSONTyped;
function HealthControllerCheck200ResponseToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'status': value.status,
        'info': value.info === undefined ? undefined : (value.info === null ? null : (0, runtime_1.mapValues)(value.info, HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueToJSON)),
        'error': value.error === undefined ? undefined : (value.error === null ? null : (0, runtime_1.mapValues)(value.error, HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueToJSON)),
        'details': value.details === undefined ? undefined : ((0, runtime_1.mapValues)(value.details, HealthControllerCheck200ResponseInfoValue_1.HealthControllerCheck200ResponseInfoValueToJSON)),
    };
}
exports.HealthControllerCheck200ResponseToJSON = HealthControllerCheck200ResponseToJSON;
