/* tslint:disable */
/* eslint-disable */
/**
 * chomestatus API
 * The API for chromestatus.com. chromestatus.com is the official tool used for tracking feature launches in Blink (the browser engine that powers Chrome and many other web browsers). This tool guides feature owners through our launch process and serves as a primary source for developer information that then ripples throughout the web developer ecosystem. More details at: https://github.com/GoogleChrome/chromium-dashboard
 *
 * 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 AccountResponse
 */
export interface AccountResponse {
    /**
     * 
     * @type {boolean}
     * @memberof AccountResponse
     */
    is_admin?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof AccountResponse
     */
    is_site_editor?: boolean;
    /**
     * 
     * @type {string}
     * @memberof AccountResponse
     */
    email?: string;
    /**
     * 
     * @type {number}
     * @memberof AccountResponse
     */
    id?: number;
}

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

export function AccountResponseFromJSON(json: any): AccountResponse {
    return AccountResponseFromJSONTyped(json, false);
}

export function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'is_admin': json['is_admin'] == null ? undefined : json['is_admin'],
        'is_site_editor': json['is_site_editor'] == null ? undefined : json['is_site_editor'],
        'email': json['email'] == null ? undefined : json['email'],
        'id': json['id'] == null ? undefined : json['id'],
    };
}

export function AccountResponseToJSON(value?: AccountResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'is_admin': value['is_admin'],
        'is_site_editor': value['is_site_editor'],
        'email': value['email'],
        'id': value['id'],
    };
}

