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

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

export function TrashOrderResponseFromJSON(json: any): TrashOrderResponse {
    return TrashOrderResponseFromJSONTyped(json, false);
}

export function TrashOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashOrderResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'requiredQualification': json['requiredQualification'] == null ? undefined : json['requiredQualification'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashOrderResponseToJSON(json: any): TrashOrderResponse {
    return TrashOrderResponseToJSONTyped(json, false);
}

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

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

