UNPKG

fetch-jsd

Version:

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

43 lines 1.51 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 { JsonTypeBeanFromJSON, } from './'; export function FieldMetadataFromJSON(json) { return FieldMetadataFromJSONTyped(json, false); } export function FieldMetadataFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'required': json['required'], 'schema': !exists(json, 'schema') ? undefined : JsonTypeBeanFromJSON(json['schema']), 'name': json['name'], 'key': json['key'], 'autoCompleteUrl': !exists(json, 'autoCompleteUrl') ? undefined : json['autoCompleteUrl'], 'hasDefaultValue': !exists(json, 'hasDefaultValue') ? undefined : json['hasDefaultValue'], 'operations': json['operations'], 'allowedValues': !exists(json, 'allowedValues') ? undefined : json['allowedValues'], 'defaultValue': !exists(json, 'defaultValue') ? undefined : json['defaultValue'], }; } export function FieldMetadataToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return {}; } //# sourceMappingURL=FieldMetadata.js.map