/* 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 OriginTrialsInfo
 */
export interface OriginTrialsInfo {
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    display_name?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    description?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    origin_trial_feature_name?: string;
    /**
     * 
     * @type {boolean}
     * @memberof OriginTrialsInfo
     */
    enabled?: boolean;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    status?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    chromestatus_url?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    start_milestone?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    end_milestone?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    original_end_milestone?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    end_time?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    documentation_url?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    feedback_url?: string;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    intent_to_experiment_url?: string;
    /**
     * 
     * @type {Array<object>}
     * @memberof OriginTrialsInfo
     */
    trial_extensions?: Array<object>;
    /**
     * 
     * @type {string}
     * @memberof OriginTrialsInfo
     */
    type?: string;
    /**
     * 
     * @type {boolean}
     * @memberof OriginTrialsInfo
     */
    allow_third_party_origins?: boolean;
}

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

export function OriginTrialsInfoFromJSON(json: any): OriginTrialsInfo {
    return OriginTrialsInfoFromJSONTyped(json, false);
}

export function OriginTrialsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OriginTrialsInfo {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'display_name': json['display_name'] == null ? undefined : json['display_name'],
        'description': json['description'] == null ? undefined : json['description'],
        'origin_trial_feature_name': json['origin_trial_feature_name'] == null ? undefined : json['origin_trial_feature_name'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'status': json['status'] == null ? undefined : json['status'],
        'chromestatus_url': json['chromestatus_url'] == null ? undefined : json['chromestatus_url'],
        'start_milestone': json['start_milestone'] == null ? undefined : json['start_milestone'],
        'end_milestone': json['end_milestone'] == null ? undefined : json['end_milestone'],
        'original_end_milestone': json['original_end_milestone'] == null ? undefined : json['original_end_milestone'],
        'end_time': json['end_time'] == null ? undefined : json['end_time'],
        'documentation_url': json['documentation_url'] == null ? undefined : json['documentation_url'],
        'feedback_url': json['feedback_url'] == null ? undefined : json['feedback_url'],
        'intent_to_experiment_url': json['intent_to_experiment_url'] == null ? undefined : json['intent_to_experiment_url'],
        'trial_extensions': json['trial_extensions'] == null ? undefined : json['trial_extensions'],
        'type': json['type'] == null ? undefined : json['type'],
        'allow_third_party_origins': json['allow_third_party_origins'] == null ? undefined : json['allow_third_party_origins'],
    };
}

export function OriginTrialsInfoToJSON(value?: OriginTrialsInfo | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'id': value['id'],
        'display_name': value['display_name'],
        'description': value['description'],
        'origin_trial_feature_name': value['origin_trial_feature_name'],
        'enabled': value['enabled'],
        'status': value['status'],
        'chromestatus_url': value['chromestatus_url'],
        'start_milestone': value['start_milestone'],
        'end_milestone': value['end_milestone'],
        'original_end_milestone': value['original_end_milestone'],
        'end_time': value['end_time'],
        'documentation_url': value['documentation_url'],
        'feedback_url': value['feedback_url'],
        'intent_to_experiment_url': value['intent_to_experiment_url'],
        'trial_extensions': value['trial_extensions'],
        'type': value['type'],
        'allow_third_party_origins': value['allow_third_party_origins'],
    };
}

