/* 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 { SessionPlanData } from './SessionPlanData'; import { SessionPlanDataFromJSON, SessionPlanDataFromJSONTyped, SessionPlanDataToJSON, } from './SessionPlanData'; import type { UserData } from './UserData'; import { UserDataFromJSON, UserDataFromJSONTyped, UserDataToJSON, } from './UserData'; import type { SessionPlanSetInstanceData } from './SessionPlanSetInstanceData'; import { SessionPlanSetInstanceDataFromJSON, SessionPlanSetInstanceDataFromJSONTyped, SessionPlanSetInstanceDataToJSON, } from './SessionPlanSetInstanceData'; /** * * @export * @interface SessionPlanSequenceInstanceData */ export interface SessionPlanSequenceInstanceData { /** * * @type {number} * @memberof SessionPlanSequenceInstanceData */ id: number; /** * * @type {string} * @memberof SessionPlanSequenceInstanceData */ name: string; /** * * @type {string} * @memberof SessionPlanSequenceInstanceData */ description: string; /** * * @type {string} * @memberof SessionPlanSequenceInstanceData */ notes: string; /** * * @type {Date} * @memberof SessionPlanSequenceInstanceData */ startedAt: Date; /** * * @type {number} * @memberof SessionPlanSequenceInstanceData */ scheduleIndex: number; /** * * @type {UserData} * @memberof SessionPlanSequenceInstanceData */ user?: UserData; /** * * @type {SessionPlanData} * @memberof SessionPlanSequenceInstanceData */ sessionPlan?: SessionPlanData; /** * * @type {Array} * @memberof SessionPlanSequenceInstanceData */ sessionPlanSetInstances?: Array; } /** * Check if a given object implements the SessionPlanSequenceInstanceData interface. */ export function instanceOfSessionPlanSequenceInstanceData(value: object): value is SessionPlanSequenceInstanceData { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; if (!('notes' in value) || value['notes'] === undefined) return false; if (!('startedAt' in value) || value['startedAt'] === undefined) return false; if (!('scheduleIndex' in value) || value['scheduleIndex'] === undefined) return false; return true; } export function SessionPlanSequenceInstanceDataFromJSON(json: any): SessionPlanSequenceInstanceData { return SessionPlanSequenceInstanceDataFromJSONTyped(json, false); } export function SessionPlanSequenceInstanceDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanSequenceInstanceData { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'description': json['description'], 'notes': json['notes'], 'startedAt': (new Date(json['startedAt'])), 'scheduleIndex': json['scheduleIndex'], 'user': json['user'] == null ? undefined : UserDataFromJSON(json['user']), 'sessionPlan': json['sessionPlan'] == null ? undefined : SessionPlanDataFromJSON(json['sessionPlan']), 'sessionPlanSetInstances': json['sessionPlanSetInstances'] == null ? undefined : ((json['sessionPlanSetInstances'] as Array).map(SessionPlanSetInstanceDataFromJSON)), }; } export function SessionPlanSequenceInstanceDataToJSON(value?: SessionPlanSequenceInstanceData | null): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'description': value['description'], 'notes': value['notes'], 'startedAt': ((value['startedAt']).toISOString()), 'scheduleIndex': value['scheduleIndex'], 'user': UserDataToJSON(value['user']), 'sessionPlan': SessionPlanDataToJSON(value['sessionPlan']), 'sessionPlanSetInstances': value['sessionPlanSetInstances'] == null ? undefined : ((value['sessionPlanSetInstances'] as Array).map(SessionPlanSetInstanceDataToJSON)), }; }