"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.EnvironmentDtoToJSON = exports.EnvironmentDtoFromJSONTyped = exports.EnvironmentDtoFromJSON = exports.instanceOfEnvironmentDto = void 0;
/**
 * Check if a given object implements the EnvironmentDto interface.
 */
function instanceOfEnvironmentDto(value) {
    let isInstance = true;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "name" in value;
    isInstance = isInstance && "projectId" in value;
    return isInstance;
}
exports.instanceOfEnvironmentDto = instanceOfEnvironmentDto;
function EnvironmentDtoFromJSON(json) {
    return EnvironmentDtoFromJSONTyped(json, false);
}
exports.EnvironmentDtoFromJSON = EnvironmentDtoFromJSON;
function EnvironmentDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'id': json['id'],
        'name': json['name'],
        'projectId': json['projectId'],
    };
}
exports.EnvironmentDtoFromJSONTyped = EnvironmentDtoFromJSONTyped;
function EnvironmentDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'id': value.id,
        'name': value.name,
        'projectId': value.projectId,
    };
}
exports.EnvironmentDtoToJSON = EnvironmentDtoToJSON;
