/* 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 TrashFacilityQualificationRateResponse
 */
export interface TrashFacilityQualificationRateResponse {
    /**
     * 
     * @type {string}
     * @memberof TrashFacilityQualificationRateResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof TrashFacilityQualificationRateResponse
     */
    facilityId?: string;
    /**
     * 
     * @type {string}
     * @memberof TrashFacilityQualificationRateResponse
     */
    qualification?: string | null;
    /**
     * 
     * @type {Date}
     * @memberof TrashFacilityQualificationRateResponse
     */
    deletedAt?: Date | null;
}

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

export function TrashFacilityQualificationRateResponseFromJSON(json: any): TrashFacilityQualificationRateResponse {
    return TrashFacilityQualificationRateResponseFromJSONTyped(json, false);
}

export function TrashFacilityQualificationRateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashFacilityQualificationRateResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
        'qualification': json['qualification'] == null ? undefined : json['qualification'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashFacilityQualificationRateResponseToJSON(json: any): TrashFacilityQualificationRateResponse {
    return TrashFacilityQualificationRateResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'facilityId': value['facilityId'],
        'qualification': value['qualification'],
        'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
    };
}

