/* tslint:disable */
/* eslint-disable */
/**
 * Indexea OpenAPI
 * 这是 Indexea 搜索服务平台的 OpenAPI，用于描述平台的所有接口信息，你可以通过这个页面来了解和在线验证平台的所有接口信息。  ### Errors  本 API 使用标准的 HTTP 状态码来指示操作成功或者失败，如果失败将会在 body 中以 JSON 格式提供详细的错误信息，如下所示：  ``` {   \"error\": 404,   \"message\": \"page not found\" } ``` 
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: indexea.com@gmail.com
 *
 * 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 GlobalOptionForm
 */
export interface GlobalOptionForm {
    /**
     * 配置项名称
     * @type {string}
     * @memberof GlobalOptionForm
     */
    name?: string;
    /**
     * 配置值
     * @type {object}
     * @memberof GlobalOptionForm
     */
    value?: object;
}

/**
 * Check if a given object implements the GlobalOptionForm interface.
 */
export function instanceOfGlobalOptionForm(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function GlobalOptionFormFromJSON(json: any): GlobalOptionForm {
    return GlobalOptionFormFromJSONTyped(json, false);
}

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

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

