fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
32 lines • 1.56 kB
JavaScript
// 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';
export function HistoryMetadataParticipantFromJSON(json) {
return HistoryMetadataParticipantFromJSONTyped(json, false);
}
export function HistoryMetadataParticipantFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return Object.assign(Object.assign({}, json), { 'id': !exists(json, 'id') ? undefined : json['id'], 'displayName': !exists(json, 'displayName') ? undefined : json['displayName'], 'displayNameKey': !exists(json, 'displayNameKey') ? undefined : json['displayNameKey'], 'type': !exists(json, 'type') ? undefined : json['type'], 'avatarUrl': !exists(json, 'avatarUrl') ? undefined : json['avatarUrl'], 'url': !exists(json, 'url') ? undefined : json['url'] });
}
export function HistoryMetadataParticipantToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return Object.assign(Object.assign({}, value), { 'id': value.id, 'displayName': value.displayName, 'displayNameKey': value.displayNameKey, 'type': value.type, 'avatarUrl': value.avatarUrl, 'url': value.url });
}
//# sourceMappingURL=HistoryMetadataParticipant.js.map