/* tslint:disable */ /* eslint-disable */ /** * metrics-sdk-admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 5.4.9 * * * 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 { StrengthMachineData } from './StrengthMachineData'; import { StrengthMachineDataFromJSON, StrengthMachineDataFromJSONTyped, StrengthMachineDataToJSON, } from './StrengthMachineData'; import type { A500MachineStateData } from './A500MachineStateData'; import { A500MachineStateDataFromJSON, A500MachineStateDataFromJSONTyped, A500MachineStateDataToJSON, } from './A500MachineStateData'; /** * * @export * @interface FacilityStrengthMachineData */ export interface FacilityStrengthMachineData { /** * * @type {number} * @memberof FacilityStrengthMachineData */ id: number; /** * * @type {string} * @memberof FacilityStrengthMachineData */ updatedAt: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ model: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ version: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ softwareVersion?: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ mainBoardSerial?: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ location?: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ displayUUID?: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ leftCylinderSerial?: string; /** * * @type {string} * @memberof FacilityStrengthMachineData */ rightCylinderSerial?: string; /** * * @type {StrengthMachineData} * @memberof FacilityStrengthMachineData */ strengthMachine?: StrengthMachineData; /** * * @type {A500MachineStateData} * @memberof FacilityStrengthMachineData */ a500MachineState?: A500MachineStateData; } /** * Check if a given object implements the FacilityStrengthMachineData interface. */ export function instanceOfFacilityStrengthMachineData(value: object): value is FacilityStrengthMachineData { if (!('id' in value) || value['id'] === undefined) return false; if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false; if (!('model' in value) || value['model'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; } export function FacilityStrengthMachineDataFromJSON(json: any): FacilityStrengthMachineData { return FacilityStrengthMachineDataFromJSONTyped(json, false); } export function FacilityStrengthMachineDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityStrengthMachineData { if (json == null) { return json; } return { 'id': json['id'], 'updatedAt': json['updatedAt'], 'model': json['model'], 'version': json['version'], 'softwareVersion': json['softwareVersion'] == null ? undefined : json['softwareVersion'], 'mainBoardSerial': json['mainBoardSerial'] == null ? undefined : json['mainBoardSerial'], 'location': json['location'] == null ? undefined : json['location'], 'displayUUID': json['displayUUID'] == null ? undefined : json['displayUUID'], 'leftCylinderSerial': json['leftCylinderSerial'] == null ? undefined : json['leftCylinderSerial'], 'rightCylinderSerial': json['rightCylinderSerial'] == null ? undefined : json['rightCylinderSerial'], 'strengthMachine': json['strengthMachine'] == null ? undefined : StrengthMachineDataFromJSON(json['strengthMachine']), 'a500MachineState': json['a500MachineState'] == null ? undefined : A500MachineStateDataFromJSON(json['a500MachineState']), }; } export function FacilityStrengthMachineDataToJSON(value?: FacilityStrengthMachineData | null): any { if (value == null) { return value; } return { 'id': value['id'], 'updatedAt': value['updatedAt'], 'model': value['model'], 'version': value['version'], 'softwareVersion': value['softwareVersion'], 'mainBoardSerial': value['mainBoardSerial'], 'location': value['location'], 'displayUUID': value['displayUUID'], 'leftCylinderSerial': value['leftCylinderSerial'], 'rightCylinderSerial': value['rightCylinderSerial'], 'strengthMachine': StrengthMachineDataToJSON(value['strengthMachine']), 'a500MachineState': A500MachineStateDataToJSON(value['a500MachineState']), }; }