/* 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 AppMentorBean
 */
export interface AppMentorBean {
    /**
     * 应用编号
     * @type {number}
     * @memberof AppMentorBean
     */
    app?: number;
    /**
     * 成员编号
     * @type {number}
     * @memberof AppMentorBean
     */
    account?: number;
    /**
     * 成员备注名
     * @type {string}
     * @memberof AppMentorBean
     */
    name?: string;
    /**
     * 成员对应用的备注名
     * @type {string}
     * @memberof AppMentorBean
     */
    appName?: string;
    /**
     * 成员权限
     * @type {string}
     * @memberof AppMentorBean
     */
    scopes?: string;
    /**
     * 是否接收报告
     * @type {number}
     * @memberof AppMentorBean
     */
    report?: number;
    /**
     * 成员的设置项
     * @type {object}
     * @memberof AppMentorBean
     */
    settings?: object;
    /**
     * 
     * @type {Date}
     * @memberof AppMentorBean
     */
    createdAt?: Date;
}

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

    return isInstance;
}

export function AppMentorBeanFromJSON(json: any): AppMentorBean {
    return AppMentorBeanFromJSONTyped(json, false);
}

export function AppMentorBeanFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppMentorBean {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'app': !exists(json, 'app') ? undefined : json['app'],
        'account': !exists(json, 'account') ? undefined : json['account'],
        'name': !exists(json, 'name') ? undefined : json['name'],
        'appName': !exists(json, 'app_name') ? undefined : json['app_name'],
        'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
        'report': !exists(json, 'report') ? undefined : json['report'],
        'settings': !exists(json, 'settings') ? undefined : json['settings'],
        'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
    };
}

export function AppMentorBeanToJSON(value?: AppMentorBean | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'app': value.app,
        'account': value.account,
        'name': value.name,
        'app_name': value.appName,
        'scopes': value.scopes,
        'report': value.report,
        'settings': value.settings,
        'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
    };
}

