UNPKG

@fnt-eve/esi-client-typescript

Version:

[![npm version](https://img.shields.io/npm/v/@fnt-eve/esi-client-typescript)](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)

62 lines (61 loc) 2.38 kB
/* tslint:disable */ /* eslint-disable */ /** * EVE Swagger Interface * An OpenAPI for EVE Online * * The version of the OpenAPI document: 1.36 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Check if a given object implements the GetDogmaAttributesAttributeIdOk interface. */ export function instanceOfGetDogmaAttributesAttributeIdOk(value) { if (!('attributeId' in value) || value['attributeId'] === undefined) return false; return true; } export function GetDogmaAttributesAttributeIdOkFromJSON(json) { return GetDogmaAttributesAttributeIdOkFromJSONTyped(json, false); } export function GetDogmaAttributesAttributeIdOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'attributeId': json['attribute_id'], 'defaultValue': json['default_value'] == null ? undefined : json['default_value'], 'description': json['description'] == null ? undefined : json['description'], 'displayName': json['display_name'] == null ? undefined : json['display_name'], 'highIsGood': json['high_is_good'] == null ? undefined : json['high_is_good'], 'iconId': json['icon_id'] == null ? undefined : json['icon_id'], 'name': json['name'] == null ? undefined : json['name'], 'published': json['published'] == null ? undefined : json['published'], 'stackable': json['stackable'] == null ? undefined : json['stackable'], 'unitId': json['unit_id'] == null ? undefined : json['unit_id'], }; } export function GetDogmaAttributesAttributeIdOkToJSON(json) { return GetDogmaAttributesAttributeIdOkToJSONTyped(json, false); } export function GetDogmaAttributesAttributeIdOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'attribute_id': value['attributeId'], 'default_value': value['defaultValue'], 'description': value['description'], 'display_name': value['displayName'], 'high_is_good': value['highIsGood'], 'icon_id': value['iconId'], 'name': value['name'], 'published': value['published'], 'stackable': value['stackable'], 'unit_id': value['unitId'], }; }