/* tslint:disable */
/* eslint-disable */
/**
 * Unleash API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 4.11.0-beta.2
 * 
 *
 * 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';
/**
 * 
 * @export
 * @interface CloneFeatureSchema
 */
export interface CloneFeatureSchema {
    /**
     * 
     * @type {string}
     * @memberof CloneFeatureSchema
     */
    name: string;
    /**
     * 
     * @type {boolean}
     * @memberof CloneFeatureSchema
     */
    replaceGroupId?: boolean;
}

export function CloneFeatureSchemaFromJSON(json: any): CloneFeatureSchema {
    return CloneFeatureSchemaFromJSONTyped(json, false);
}

export function CloneFeatureSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloneFeatureSchema {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'name': json['name'],
        'replaceGroupId': !exists(json, 'replaceGroupId') ? undefined : json['replaceGroupId'],
    };
}

export function CloneFeatureSchemaToJSON(value?: CloneFeatureSchema | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'name': value.name,
        'replaceGroupId': value.replaceGroupId,
    };
}

