/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * 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.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface FacilityOptionResponse
 */
export interface FacilityOptionResponse {
    /**
     * 
     * @type {string}
     * @memberof FacilityOptionResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof FacilityOptionResponse
     */
    name?: string | null;
}

/**
 * Check if a given object implements the FacilityOptionResponse interface.
 */
export function instanceOfFacilityOptionResponse(value: object): value is FacilityOptionResponse {
    return true;
}

export function FacilityOptionResponseFromJSON(json: any): FacilityOptionResponse {
    return FacilityOptionResponseFromJSONTyped(json, false);
}

export function FacilityOptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityOptionResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'name': json['name'] == null ? undefined : json['name'],
    };
}

export function FacilityOptionResponseToJSON(json: any): FacilityOptionResponse {
    return FacilityOptionResponseToJSONTyped(json, false);
}

export function FacilityOptionResponseToJSONTyped(value?: FacilityOptionResponse | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'id': value['id'],
        'name': value['name'],
    };
}

