/* tslint:disable */ /* eslint-disable */ /** * EAS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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'; import type { Participant } from './Participant'; import { ParticipantFromJSON, ParticipantFromJSONTyped, ParticipantToJSON, } from './Participant'; import type { ShiftsResultAllOfInterval } from './ShiftsResultAllOfInterval'; import { ShiftsResultAllOfIntervalFromJSON, ShiftsResultAllOfIntervalFromJSONTyped, ShiftsResultAllOfIntervalToJSON, } from './ShiftsResultAllOfInterval'; /** * * @export * @interface ShiftsResultAllOfValue */ export interface ShiftsResultAllOfValue { /** * * @type {ShiftsResultAllOfInterval} * @memberof ShiftsResultAllOfValue */ interval?: ShiftsResultAllOfInterval; /** * * @type {Array} * @memberof ShiftsResultAllOfValue */ participants?: Array; } /** * Check if a given object implements the ShiftsResultAllOfValue interface. */ export function instanceOfShiftsResultAllOfValue(value: object): value is ShiftsResultAllOfValue { return true; } export function ShiftsResultAllOfValueFromJSON(json: any): ShiftsResultAllOfValue { return ShiftsResultAllOfValueFromJSONTyped(json, false); } export function ShiftsResultAllOfValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftsResultAllOfValue { if (json == null) { return json; } return { 'interval': json['interval'] == null ? undefined : ShiftsResultAllOfIntervalFromJSON(json['interval']), 'participants': json['participants'] == null ? undefined : ((json['participants'] as Array).map(ParticipantFromJSON)), }; } export function ShiftsResultAllOfValueToJSON(value?: ShiftsResultAllOfValue | null): any { if (value == null) { return value; } return { 'interval': ShiftsResultAllOfIntervalToJSON(value['interval']), 'participants': value['participants'] == null ? undefined : ((value['participants'] as Array).map(ParticipantToJSON)), }; }