/* 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 FacilityContactResponse
 */
export interface FacilityContactResponse {
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    facilityId?: string;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    name?: string | null;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    role?: string | null;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    department?: string | null;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    phoneNumber?: string | null;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    email?: string | null;
    /**
     * 
     * @type {string}
     * @memberof FacilityContactResponse
     */
    notes?: string | null;
}

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

export function FacilityContactResponseFromJSON(json: any): FacilityContactResponse {
    return FacilityContactResponseFromJSONTyped(json, false);
}

export function FacilityContactResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityContactResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
        'name': json['name'] == null ? undefined : json['name'],
        'role': json['role'] == null ? undefined : json['role'],
        'department': json['department'] == null ? undefined : json['department'],
        'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
        'email': json['email'] == null ? undefined : json['email'],
        'notes': json['notes'] == null ? undefined : json['notes'],
    };
}

export function FacilityContactResponseToJSON(json: any): FacilityContactResponse {
    return FacilityContactResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'facilityId': value['facilityId'],
        'name': value['name'],
        'role': value['role'],
        'department': value['department'],
        'phoneNumber': value['phoneNumber'],
        'email': value['email'],
        'notes': value['notes'],
    };
}

