/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { ReqGroupUsers, ReqGroupUsersFromJSON, ReqGroupUsersFromJSONTyped, ReqGroupUsersToJSON, } from './'; /** * * @export * @interface ReqGroup */ export interface ReqGroup { /** * * @type {string} * @memberof ReqGroup */ id: string; /** * * @type {Array} * @memberof ReqGroup */ users?: Array; } export function ReqGroupFromJSON(json: any): ReqGroup { return ReqGroupFromJSONTyped(json, false); } export function ReqGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGroup { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'users': !exists(json, 'users') ? undefined : ((json['users'] as Array).map(ReqGroupUsersFromJSON)), }; } export function ReqGroupToJSON(value?: ReqGroup | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'users': value.users === undefined ? undefined : ((value.users as Array).map(ReqGroupUsersToJSON)), }; }