@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
49 lines (48 loc) • 1.83 kB
JavaScript
/* 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.
*/
import { PostCharactersCharacterIdAssetsLocationsPositionFromJSON, PostCharactersCharacterIdAssetsLocationsPositionToJSON, } from './PostCharactersCharacterIdAssetsLocationsPosition';
/**
* Check if a given object implements the PostCharactersCharacterIdAssetsLocations200Ok interface.
*/
export function instanceOfPostCharactersCharacterIdAssetsLocations200Ok(value) {
if (!('itemId' in value) || value['itemId'] === undefined)
return false;
if (!('position' in value) || value['position'] === undefined)
return false;
return true;
}
export function PostCharactersCharacterIdAssetsLocations200OkFromJSON(json) {
return PostCharactersCharacterIdAssetsLocations200OkFromJSONTyped(json, false);
}
export function PostCharactersCharacterIdAssetsLocations200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'itemId': json['item_id'],
'position': PostCharactersCharacterIdAssetsLocationsPositionFromJSON(json['position']),
};
}
export function PostCharactersCharacterIdAssetsLocations200OkToJSON(json) {
return PostCharactersCharacterIdAssetsLocations200OkToJSONTyped(json, false);
}
export function PostCharactersCharacterIdAssetsLocations200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'item_id': value['itemId'],
'position': PostCharactersCharacterIdAssetsLocationsPositionToJSON(value['position']),
};
}