/* 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 { FieldInfo } from './FieldInfo';
import {
    FieldInfoFromJSON,
    FieldInfoFromJSONTyped,
    FieldInfoToJSON,
} from './FieldInfo';

/**
 * 
 * @export
 * @interface MilestoneSetField
 */
export interface MilestoneSetField {
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    desktop_first?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    desktop_last?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    android_first?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    android_last?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    ios_first?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    ios_last?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    webview_first?: FieldInfo;
    /**
     * 
     * @type {FieldInfo}
     * @memberof MilestoneSetField
     */
    webview_last?: FieldInfo;
}

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

export function MilestoneSetFieldFromJSON(json: any): MilestoneSetField {
    return MilestoneSetFieldFromJSONTyped(json, false);
}

export function MilestoneSetFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): MilestoneSetField {
    if (json == null) {
        return json;
    }
    return {
        
        'desktop_first': json['desktop_first'] == null ? undefined : FieldInfoFromJSON(json['desktop_first']),
        'desktop_last': json['desktop_last'] == null ? undefined : FieldInfoFromJSON(json['desktop_last']),
        'android_first': json['android_first'] == null ? undefined : FieldInfoFromJSON(json['android_first']),
        'android_last': json['android_last'] == null ? undefined : FieldInfoFromJSON(json['android_last']),
        'ios_first': json['ios_first'] == null ? undefined : FieldInfoFromJSON(json['ios_first']),
        'ios_last': json['ios_last'] == null ? undefined : FieldInfoFromJSON(json['ios_last']),
        'webview_first': json['webview_first'] == null ? undefined : FieldInfoFromJSON(json['webview_first']),
        'webview_last': json['webview_last'] == null ? undefined : FieldInfoFromJSON(json['webview_last']),
    };
}

export function MilestoneSetFieldToJSON(value?: MilestoneSetField | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'desktop_first': FieldInfoToJSON(value['desktop_first']),
        'desktop_last': FieldInfoToJSON(value['desktop_last']),
        'android_first': FieldInfoToJSON(value['android_first']),
        'android_last': FieldInfoToJSON(value['android_last']),
        'ios_first': FieldInfoToJSON(value['ios_first']),
        'ios_last': FieldInfoToJSON(value['ios_last']),
        'webview_first': FieldInfoToJSON(value['webview_first']),
        'webview_last': FieldInfoToJSON(value['webview_last']),
    };
}

