/* tslint:disable */ /* eslint-disable */ /** * Equisoft /plan API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: latest * * * 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 CmdCopyFNA */ export interface CmdCopyFNA { /** * Uuid of the fna to copy * @type {string} * @memberof CmdCopyFNA */ fnaUuid: string; /** * Email of the user to which the new FNA should be assigned, default to owner of the FNA * @type {string} * @memberof CmdCopyFNA */ userEmail?: string | null; /** * Array of participant UUIDs to modify * @type {{ [key: string]: string; }} * @memberof CmdCopyFNA */ newParticipantUuids?: { [key: string]: string; }; } /** * Check if a given object implements the CmdCopyFNA interface. */ export function instanceOfCmdCopyFNA(value: object): value is CmdCopyFNA { if (!('fnaUuid' in value) || value['fnaUuid'] === undefined) return false; return true; } export function CmdCopyFNAFromJSON(json: any): CmdCopyFNA { return CmdCopyFNAFromJSONTyped(json, false); } export function CmdCopyFNAFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNA { if (json == null) { return json; } return { 'fnaUuid': json['fnaUuid'], 'userEmail': json['userEmail'] == null ? undefined : json['userEmail'], 'newParticipantUuids': json['newParticipantUuids'] == null ? undefined : json['newParticipantUuids'], }; } export function CmdCopyFNAToJSON(json: any): CmdCopyFNA { return CmdCopyFNAToJSONTyped(json, false); } export function CmdCopyFNAToJSONTyped(value?: CmdCopyFNA | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'fnaUuid': value['fnaUuid'], 'userEmail': value['userEmail'], 'newParticipantUuids': value['newParticipantUuids'], }; }