/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * 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 { mapValues } from '../runtime';
import type { ListMemberships200ResponseMembershipsInner } from './ListMemberships200ResponseMembershipsInner';
import {
    ListMemberships200ResponseMembershipsInnerFromJSON,
    ListMemberships200ResponseMembershipsInnerFromJSONTyped,
    ListMemberships200ResponseMembershipsInnerToJSON,
} from './ListMemberships200ResponseMembershipsInner';

/**
 * 
 * @export
 * @interface ListMemberships200Response
 */
export interface ListMemberships200Response {
    /**
     * 
     * @type {Array<ListMemberships200ResponseMembershipsInner>}
     * @memberof ListMemberships200Response
     */
    memberships?: Array<ListMemberships200ResponseMembershipsInner>;
}

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

export function ListMemberships200ResponseFromJSON(json: any): ListMemberships200Response {
    return ListMemberships200ResponseFromJSONTyped(json, false);
}

export function ListMemberships200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMemberships200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'memberships': json['memberships'] == null ? undefined : ((json['memberships'] as Array<any>).map(ListMemberships200ResponseMembershipsInnerFromJSON)),
    };
}

export function ListMemberships200ResponseToJSON(value?: ListMemberships200Response | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'memberships': value['memberships'] == null ? undefined : ((value['memberships'] as Array<any>).map(ListMemberships200ResponseMembershipsInnerToJSON)),
    };
}

