/* 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 PatchCommentRequest
 */
export interface PatchCommentRequest {
    /**
     * The ID of the comment to be updated
     * @type {number}
     * @memberof PatchCommentRequest
     */
    commentId: number;
    /**
     * Indicates whether to undelete (true) or delete (false) the comment
     * @type {boolean}
     * @memberof PatchCommentRequest
     */
    isUndelete: boolean;
}

/**
 * Check if a given object implements the PatchCommentRequest interface.
 */
export function instanceOfPatchCommentRequest(value: object): value is PatchCommentRequest {
    if (!('commentId' in value) || value['commentId'] === undefined) return false;
    if (!('isUndelete' in value) || value['isUndelete'] === undefined) return false;
    return true;
}

export function PatchCommentRequestFromJSON(json: any): PatchCommentRequest {
    return PatchCommentRequestFromJSONTyped(json, false);
}

export function PatchCommentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchCommentRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'commentId': json['commentId'],
        'isUndelete': json['isUndelete'],
    };
}

export function PatchCommentRequestToJSON(value?: PatchCommentRequest | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'commentId': value['commentId'],
        'isUndelete': value['isUndelete'],
    };
}

