/* 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';
import type { LinkPreviewGithubIssueAllOfInformation } from './LinkPreviewGithubIssueAllOfInformation';
import {
    LinkPreviewGithubIssueAllOfInformationFromJSON,
    LinkPreviewGithubIssueAllOfInformationFromJSONTyped,
    LinkPreviewGithubIssueAllOfInformationToJSON,
} from './LinkPreviewGithubIssueAllOfInformation';

/**
 * 
 * @export
 * @interface LinkPreviewGithubIssue
 */
export interface LinkPreviewGithubIssue {
    /**
     * 
     * @type {string}
     * @memberof LinkPreviewGithubIssue
     */
    url: string;
    /**
     * 
     * @type {string}
     * @memberof LinkPreviewGithubIssue
     */
    type: string;
    /**
     * 
     * @type {LinkPreviewGithubIssueAllOfInformation}
     * @memberof LinkPreviewGithubIssue
     */
    information?: LinkPreviewGithubIssueAllOfInformation;
    /**
     * 
     * @type {number}
     * @memberof LinkPreviewGithubIssue
     */
    http_error_code?: number;
}

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

export function LinkPreviewGithubIssueFromJSON(json: any): LinkPreviewGithubIssue {
    return LinkPreviewGithubIssueFromJSONTyped(json, false);
}

export function LinkPreviewGithubIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPreviewGithubIssue {
    if (json == null) {
        return json;
    }
    return {
        
        'url': json['url'],
        'type': json['type'],
        'information': json['information'] == null ? undefined : LinkPreviewGithubIssueAllOfInformationFromJSON(json['information']),
        'http_error_code': json['http_error_code'] == null ? undefined : json['http_error_code'],
    };
}

export function LinkPreviewGithubIssueToJSON(value?: LinkPreviewGithubIssue | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'url': value['url'],
        'type': value['type'],
        'information': LinkPreviewGithubIssueAllOfInformationToJSON(value['information']),
        'http_error_code': value['http_error_code'],
    };
}

