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

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

export function UpdateFacilityContactRequestFromJSON(json: any): UpdateFacilityContactRequest {
    return UpdateFacilityContactRequestFromJSONTyped(json, false);
}

export function UpdateFacilityContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFacilityContactRequest {
    if (json == null) {
        return json;
    }
    return {
        
        '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 UpdateFacilityContactRequestToJSON(json: any): UpdateFacilityContactRequest {
    return UpdateFacilityContactRequestToJSONTyped(json, false);
}

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

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

