zrok/ui100/src/api/models/SparkDataSample.ts
2024-11-20 13:49:58 -05:00

69 lines
1.4 KiB
TypeScript

/* 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 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): value is SparkDataSample {
return true;
}
export function SparkDataSampleFromJSON(json: any): SparkDataSample {
return SparkDataSampleFromJSONTyped(json, false);
}
export function SparkDataSampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SparkDataSample {
if (json == null) {
return json;
}
return {
'rx': json['rx'] == null ? undefined : json['rx'],
'tx': json['tx'] == null ? undefined : json['tx'],
};
}
export function SparkDataSampleToJSON(value?: SparkDataSample | null): any {
if (value == null) {
return value;
}
return {
'rx': value['rx'],
'tx': value['tx'],
};
}