/* 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';
/**
 * 
 * @export
 * @interface AddOrganizationMemberRequest
 */
export interface AddOrganizationMemberRequest {
    /**
     * 
     * @type {string}
     * @memberof AddOrganizationMemberRequest
     */
    token?: string;
    /**
     * 
     * @type {string}
     * @memberof AddOrganizationMemberRequest
     */
    email?: string;
    /**
     * 
     * @type {boolean}
     * @memberof AddOrganizationMemberRequest
     */
    admin?: boolean;
}

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

export function AddOrganizationMemberRequestFromJSON(json: any): AddOrganizationMemberRequest {
    return AddOrganizationMemberRequestFromJSONTyped(json, false);
}

export function AddOrganizationMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOrganizationMemberRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'token': json['token'] == null ? undefined : json['token'],
        'email': json['email'] == null ? undefined : json['email'],
        'admin': json['admin'] == null ? undefined : json['admin'],
    };
}

export function AddOrganizationMemberRequestToJSON(value?: AddOrganizationMemberRequest | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'token': value['token'],
        'email': value['email'],
        'admin': value['admin'],
    };
}

