/* 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 PostStarsRequest
 */
export interface PostStarsRequest {
    /**
     * 
     * @type {number}
     * @memberof PostStarsRequest
     */
    feature_id?: number;
    /**
     * 
     * @type {boolean}
     * @memberof PostStarsRequest
     */
    starred?: boolean;
}

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

export function PostStarsRequestFromJSON(json: any): PostStarsRequest {
    return PostStarsRequestFromJSONTyped(json, false);
}

export function PostStarsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostStarsRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'feature_id': json['feature_id'] == null ? undefined : json['feature_id'],
        'starred': json['starred'] == null ? undefined : json['starred'],
    };
}

export function PostStarsRequestToJSON(value?: PostStarsRequest | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'feature_id': value['feature_id'],
        'starred': value['starred'],
    };
}

