/* tslint:disable */
/* eslint-disable */
/**
 * Ringer Business API
 * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites,  phone numbers, payments, users, and other business resources.  Operations typically require authentication and appropriate permissions. 
 *
 * The version of the OpenAPI document: 1.0.5
 * Contact: support@ringer.tel
 *
 * 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';
import type { ScheduleResponseData } from './ScheduleResponseData';
import {
    ScheduleResponseDataFromJSON,
    ScheduleResponseDataFromJSONTyped,
    ScheduleResponseDataToJSON,
    ScheduleResponseDataToJSONTyped,
} from './ScheduleResponseData';

/**
 * 
 * @export
 * @interface ScheduleResponse
 */
export interface ScheduleResponse {
    /**
     * 
     * @type {ScheduleResponseData}
     * @memberof ScheduleResponse
     */
    data: ScheduleResponseData;
}

/**
 * Check if a given object implements the ScheduleResponse interface.
 */
export function instanceOfScheduleResponse(value: object): value is ScheduleResponse {
    if (!('data' in value) || value['data'] === undefined) return false;
    return true;
}

export function ScheduleResponseFromJSON(json: any): ScheduleResponse {
    return ScheduleResponseFromJSONTyped(json, false);
}

export function ScheduleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': ScheduleResponseDataFromJSON(json['data']),
    };
}

export function ScheduleResponseToJSON(json: any): ScheduleResponse {
    return ScheduleResponseToJSONTyped(json, false);
}

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

    return {
        
        'data': ScheduleResponseDataToJSON(value['data']),
    };
}

