Skip to content

Commit

Permalink
Deploying from phrase/openapi@d9129f2b
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 23, 2023
1 parent 50324ab commit 1103990
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/models/JobTemplateLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

import { exists, mapValues } from '../runtime';
import {
Items,
ItemsFromJSON,
ItemsFromJSONTyped,
ItemsToJSON,
JobTemplatePreview,
JobTemplatePreviewFromJSON,
JobTemplatePreviewFromJSONTyped,
Expand All @@ -25,6 +21,14 @@ import {
LocalePreviewFromJSON,
LocalePreviewFromJSONTyped,
LocalePreviewToJSON,
LocaleTeamPreview,
LocaleTeamPreviewFromJSON,
LocaleTeamPreviewFromJSONTyped,
LocaleTeamPreviewToJSON,
LocaleUserPreview,
LocaleUserPreviewFromJSON,
LocaleUserPreviewFromJSONTyped,
LocaleUserPreviewToJSON,
} from './';

/**
Expand Down Expand Up @@ -53,16 +57,16 @@ export interface JobTemplateLocales {
locale?: LocalePreview;
/**
*
* @type {Array<Items>}
* @type {Array<LocaleUserPreview>}
* @memberof JobTemplateLocales
*/
users?: Array<Items>;
users?: Array<LocaleUserPreview>;
/**
*
* @type {Array<Items>}
* @type {Array<LocaleTeamPreview>}
* @memberof JobTemplateLocales
*/
teams?: Array<Items>;
teams?: Array<LocaleTeamPreview>;
}

export function JobTemplateLocalesFromJSON(json: any): JobTemplateLocales {
Expand All @@ -78,8 +82,8 @@ export function JobTemplateLocalesFromJSONTyped(json: any, ignoreDiscriminator:
'id': !exists(json, 'id') ? undefined : json['id'],
'jobTemplate': !exists(json, 'job_template') ? undefined : JobTemplatePreviewFromJSON(json['job_template']),
'locale': !exists(json, 'locale') ? undefined : LocalePreviewFromJSON(json['locale']),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(ItemsFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(ItemsFromJSON)),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(LocaleUserPreviewFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(LocaleTeamPreviewFromJSON)),
};
}

Expand All @@ -95,8 +99,8 @@ export function JobTemplateLocalesToJSON(value?: JobTemplateLocales | null): any
'id': value.id,
'job_template': JobTemplatePreviewToJSON(value.jobTemplate),
'locale': LocalePreviewToJSON(value.locale),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(ItemsToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(ItemsToJSON)),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(LocaleUserPreviewToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(LocaleTeamPreviewToJSON)),
};
}

Expand Down

0 comments on commit 1103990

Please sign in to comment.