/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * 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 MetricsSample
 */
export interface MetricsSample {
    /**
     * 
     * @type {number}
     * @memberof MetricsSample
     */
    rx?: number;
    /**
     * 
     * @type {number}
     * @memberof MetricsSample
     */
    tx?: number;
    /**
     * 
     * @type {number}
     * @memberof MetricsSample
     */
    timestamp?: number;
}

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

export function MetricsSampleFromJSON(json: any): MetricsSample {
    return MetricsSampleFromJSONTyped(json, false);
}

export function MetricsSampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsSample {
    if (json == null) {
        return json;
    }
    return {
        
        'rx': json['rx'] == null ? undefined : json['rx'],
        'tx': json['tx'] == null ? undefined : json['tx'],
        'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
    };
}

export function MetricsSampleToJSON(value?: MetricsSample | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'rx': value['rx'],
        'tx': value['tx'],
        'timestamp': value['timestamp'],
    };
}

