/* tslint:disable */
/* eslint-disable */
/**
 * Tuix Services
 * Tuix Services API
 *
 * The version of the OpenAPI document: 1.0.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 { exists, mapValues } from '../runtime';
import type { SubscriptionSentDto } from './SubscriptionSentDto';
import {
    SubscriptionSentDtoFromJSON,
    SubscriptionSentDtoFromJSONTyped,
    SubscriptionSentDtoToJSON,
} from './SubscriptionSentDto';

/**
 * 
 * @export
 * @interface SubscriptionsSentResponseDto
 */
export interface SubscriptionsSentResponseDto {
    /**
     * 
     * @type {Array<SubscriptionSentDto>}
     * @memberof SubscriptionsSentResponseDto
     */
    subscriptionsProcessed: Array<SubscriptionSentDto>;
}

/**
 * Check if a given object implements the SubscriptionsSentResponseDto interface.
 */
export function instanceOfSubscriptionsSentResponseDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "subscriptionsProcessed" in value;

    return isInstance;
}

export function SubscriptionsSentResponseDtoFromJSON(json: any): SubscriptionsSentResponseDto {
    return SubscriptionsSentResponseDtoFromJSONTyped(json, false);
}

export function SubscriptionsSentResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsSentResponseDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'subscriptionsProcessed': ((json['subscriptionsProcessed'] as Array<any>).map(SubscriptionSentDtoFromJSON)),
    };
}

export function SubscriptionsSentResponseDtoToJSON(value?: SubscriptionsSentResponseDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'subscriptionsProcessed': ((value.subscriptionsProcessed as Array<any>).map(SubscriptionSentDtoToJSON)),
    };
}

