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

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

export function CreateFacilityContactRequestFromJSON(json: any): CreateFacilityContactRequest {
    return CreateFacilityContactRequestFromJSONTyped(json, false);
}

export function CreateFacilityContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFacilityContactRequest {
    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 CreateFacilityContactRequestToJSON(json: any): CreateFacilityContactRequest {
    return CreateFacilityContactRequestToJSONTyped(json, false);
}

export function CreateFacilityContactRequestToJSONTyped(value?: CreateFacilityContactRequest | 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'],
    };
}

