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)

52 lines (51 loc) 2.48 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. */ import { GetCharactersCharacterIdClonesJumpCloneFromJSON, GetCharactersCharacterIdClonesJumpCloneToJSON, } from './GetCharactersCharacterIdClonesJumpClone'; import { GetCharactersCharacterIdClonesHomeLocationFromJSON, GetCharactersCharacterIdClonesHomeLocationToJSON, } from './GetCharactersCharacterIdClonesHomeLocation'; /** * Check if a given object implements the GetCharactersCharacterIdClonesOk interface. */ export function instanceOfGetCharactersCharacterIdClonesOk(value) { if (!('jumpClones' in value) || value['jumpClones'] === undefined) return false; return true; } export function GetCharactersCharacterIdClonesOkFromJSON(json) { return GetCharactersCharacterIdClonesOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdClonesOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'homeLocation': json['home_location'] == null ? undefined : GetCharactersCharacterIdClonesHomeLocationFromJSON(json['home_location']), 'jumpClones': (json['jump_clones'].map(GetCharactersCharacterIdClonesJumpCloneFromJSON)), 'lastCloneJumpDate': json['last_clone_jump_date'] == null ? undefined : (new Date(json['last_clone_jump_date'])), 'lastStationChangeDate': json['last_station_change_date'] == null ? undefined : (new Date(json['last_station_change_date'])), }; } export function GetCharactersCharacterIdClonesOkToJSON(json) { return GetCharactersCharacterIdClonesOkToJSONTyped(json, false); } export function GetCharactersCharacterIdClonesOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'home_location': GetCharactersCharacterIdClonesHomeLocationToJSON(value['homeLocation']), 'jump_clones': (value['jumpClones'].map(GetCharactersCharacterIdClonesJumpCloneToJSON)), 'last_clone_jump_date': value['lastCloneJumpDate'] == null ? undefined : ((value['lastCloneJumpDate']).toISOString()), 'last_station_change_date': value['lastStationChangeDate'] == null ? undefined : ((value['lastStationChangeDate']).toISOString()), }; }