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.45 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 GetCharactersCharacterIdSearchOk interface. */ export function instanceOfGetCharactersCharacterIdSearchOk(value) { return true; } export function GetCharactersCharacterIdSearchOkFromJSON(json) { return GetCharactersCharacterIdSearchOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdSearchOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'agent': json['agent'] == null ? undefined : json['agent'], 'alliance': json['alliance'] == null ? undefined : json['alliance'], 'character': json['character'] == null ? undefined : json['character'], 'constellation': json['constellation'] == null ? undefined : json['constellation'], 'corporation': json['corporation'] == null ? undefined : json['corporation'], 'faction': json['faction'] == null ? undefined : json['faction'], 'inventoryType': json['inventory_type'] == null ? undefined : json['inventory_type'], 'region': json['region'] == null ? undefined : json['region'], 'solarSystem': json['solar_system'] == null ? undefined : json['solar_system'], 'station': json['station'] == null ? undefined : json['station'], 'structure': json['structure'] == null ? undefined : json['structure'], }; } export function GetCharactersCharacterIdSearchOkToJSON(json) { return GetCharactersCharacterIdSearchOkToJSONTyped(json, false); } export function GetCharactersCharacterIdSearchOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'agent': value['agent'], 'alliance': value['alliance'], 'character': value['character'], 'constellation': value['constellation'], 'corporation': value['corporation'], 'faction': value['faction'], 'inventory_type': value['inventoryType'], 'region': value['region'], 'solar_system': value['solarSystem'], 'station': value['station'], 'structure': value['structure'], }; }