UNPKG

fetch-jsd

Version:

51 lines 1.82 kB
// tslint:disable /** * Service Desk Public REST API * Public REST API for Jira Service Desk * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * * * 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 } from '../runtime'; import { UserLinkDTOFromJSON, UserLinkDTOToJSON, } from './'; export function UserDTOFromJSON(json) { return UserDTOFromJSONTyped(json, false); } export function UserDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'accountId': !exists(json, 'accountId') ? undefined : json['accountId'], 'name': !exists(json, 'name') ? undefined : json['name'], 'key': !exists(json, 'key') ? undefined : json['key'], 'emailAddress': !exists(json, 'emailAddress') ? undefined : json['emailAddress'], 'displayName': !exists(json, 'displayName') ? undefined : json['displayName'], 'active': !exists(json, 'active') ? undefined : json['active'], 'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'], '_links': !exists(json, '_links') ? undefined : UserLinkDTOFromJSON(json['_links']), }; } export function UserDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'accountId': value.accountId, 'name': value.name, 'key': value.key, 'emailAddress': value.emailAddress, 'displayName': value.displayName, 'active': value.active, 'timeZone': value.timeZone, '_links': UserLinkDTOToJSON(value._links), }; } //# sourceMappingURL=UserDTO.js.map