/* 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 Amendment
 */
export interface Amendment {
    /**
     * 
     * @type {string}
     * @memberof Amendment
     */
    field_name: string;
    /**
     * 
     * @type {string}
     * @memberof Amendment
     */
    old_value: string;
    /**
     * 
     * @type {string}
     * @memberof Amendment
     */
    new_value: string;
}

/**
 * Check if a given object implements the Amendment interface.
 */
export function instanceOfAmendment(value: object): value is Amendment {
    if (!('field_name' in value) || value['field_name'] === undefined) return false;
    if (!('old_value' in value) || value['old_value'] === undefined) return false;
    if (!('new_value' in value) || value['new_value'] === undefined) return false;
    return true;
}

export function AmendmentFromJSON(json: any): Amendment {
    return AmendmentFromJSONTyped(json, false);
}

export function AmendmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Amendment {
    if (json == null) {
        return json;
    }
    return {
        
        'field_name': json['field_name'],
        'old_value': json['old_value'],
        'new_value': json['new_value'],
    };
}

export function AmendmentToJSON(value?: Amendment | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'field_name': value['field_name'],
        'old_value': value['old_value'],
        'new_value': value['new_value'],
    };
}

