/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 0.3.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 { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface SparkDataSample
 */
export interface SparkDataSample {
    /**
     * 
     * @type {number}
     * @memberof SparkDataSample
     */
    rx?: number;
    /**
     * 
     * @type {number}
     * @memberof SparkDataSample
     */
    tx?: number;
}

/**
 * Check if a given object implements the SparkDataSample interface.
 */
export function instanceOfSparkDataSample(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function SparkDataSampleFromJSON(json: any): SparkDataSample {
    return SparkDataSampleFromJSONTyped(json, false);
}

export function SparkDataSampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SparkDataSample {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'rx': !exists(json, 'rx') ? undefined : json['rx'],
        'tx': !exists(json, 'tx') ? undefined : json['tx'],
    };
}

export function SparkDataSampleToJSON(value?: SparkDataSample | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'rx': value.rx,
        'tx': value.tx,
    };
}

