/* tslint:disable */
/* eslint-disable */
/**
 * Commander Spellbook API
 * API for Commander Spellbook, the combo database engine for Magic: The Gathering
 *
 * The version of the OpenAPI document: 5.4.10
 * 
 *
 * 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.js';
import type { PaginatedFindMyCombosResponseListResults } from './PaginatedFindMyCombosResponseListResults.js';
import {
    PaginatedFindMyCombosResponseListResultsFromJSON,
    PaginatedFindMyCombosResponseListResultsFromJSONTyped,
    PaginatedFindMyCombosResponseListResultsToJSON,
    PaginatedFindMyCombosResponseListResultsToJSONTyped,
} from './PaginatedFindMyCombosResponseListResults.js';

/**
 * 
 * @export
 * @interface PaginatedFindMyCombosResponseList
 */
export interface PaginatedFindMyCombosResponseList {
    /**
     * 
     * @type {number}
     * @memberof PaginatedFindMyCombosResponseList
     */
    count: number | null;
    /**
     * 
     * @type {string}
     * @memberof PaginatedFindMyCombosResponseList
     */
    next: string | null;
    /**
     * 
     * @type {string}
     * @memberof PaginatedFindMyCombosResponseList
     */
    previous: string | null;
    /**
     * 
     * @type {PaginatedFindMyCombosResponseListResults}
     * @memberof PaginatedFindMyCombosResponseList
     */
    results: PaginatedFindMyCombosResponseListResults;
}

/**
 * Check if a given object implements the PaginatedFindMyCombosResponseList interface.
 */
export function instanceOfPaginatedFindMyCombosResponseList(value: object): value is PaginatedFindMyCombosResponseList {
    if (!('count' in value) || value['count'] === undefined) return false;
    if (!('next' in value) || value['next'] === undefined) return false;
    if (!('previous' in value) || value['previous'] === undefined) return false;
    if (!('results' in value) || value['results'] === undefined) return false;
    return true;
}

export function PaginatedFindMyCombosResponseListFromJSON(json: any): PaginatedFindMyCombosResponseList {
    return PaginatedFindMyCombosResponseListFromJSONTyped(json, false);
}

export function PaginatedFindMyCombosResponseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFindMyCombosResponseList {
    if (json == null) {
        return json;
    }
    return {
        
        'count': json['count'],
        'next': json['next'],
        'previous': json['previous'],
        'results': PaginatedFindMyCombosResponseListResultsFromJSON(json['results']),
    };
}

export function PaginatedFindMyCombosResponseListToJSON(json: any): PaginatedFindMyCombosResponseList {
    return PaginatedFindMyCombosResponseListToJSONTyped(json, false);
}

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

    return {
        
        'count': value['count'],
        'next': value['next'],
        'previous': value['previous'],
        'results': PaginatedFindMyCombosResponseListResultsToJSON(value['results']),
    };
}

