UNPKG

fetch-jsd

Version:

A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.

46 lines 1.73 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 { AvatarUrlsBeanFromJSON, } from './'; export function UserDetailsFromJSON(json) { return UserDetailsFromJSONTyped(json, false); } export function UserDetailsFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'self': !exists(json, 'self') ? undefined : json['self'], 'name': !exists(json, 'name') ? undefined : json['name'], 'key': !exists(json, 'key') ? undefined : json['key'], 'accountId': !exists(json, 'accountId') ? undefined : json['accountId'], 'emailAddress': !exists(json, 'emailAddress') ? undefined : json['emailAddress'], 'avatarUrls': !exists(json, 'avatarUrls') ? undefined : AvatarUrlsBeanFromJSON(json['avatarUrls']), 'displayName': !exists(json, 'displayName') ? undefined : json['displayName'], 'active': !exists(json, 'active') ? undefined : json['active'], 'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'], 'accountType': !exists(json, 'accountType') ? undefined : json['accountType'], }; } export function UserDetailsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'accountId': value.accountId, }; } //# sourceMappingURL=UserDetails.js.map