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)

60 lines (59 loc) 1.97 kB
/* tslint:disable */ /* eslint-disable */ /** * EVE Swagger Interface * An OpenAPI for EVE Online * * The version of the OpenAPI document: 1.33 * * * 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 GetUniverseAncestries200Ok interface. */ export function instanceOfGetUniverseAncestries200Ok(value) { if (!('bloodlineId' in value) || value['bloodlineId'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function GetUniverseAncestries200OkFromJSON(json) { return GetUniverseAncestries200OkFromJSONTyped(json, false); } export function GetUniverseAncestries200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'bloodlineId': json['bloodline_id'], 'description': json['description'], 'iconId': json['icon_id'] == null ? undefined : json['icon_id'], 'id': json['id'], 'name': json['name'], 'shortDescription': json['short_description'] == null ? undefined : json['short_description'], }; } export function GetUniverseAncestries200OkToJSON(json) { return GetUniverseAncestries200OkToJSONTyped(json, false); } export function GetUniverseAncestries200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'bloodline_id': value['bloodlineId'], 'description': value['description'], 'icon_id': value['iconId'], 'id': value['id'], 'name': value['name'], 'short_description': value['shortDescription'], }; }