@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
48 lines (47 loc) • 1.6 kB
JavaScript
/* 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 GetCharactersCharacterIdPortraitOk interface.
*/
export function instanceOfGetCharactersCharacterIdPortraitOk(value) {
return true;
}
export function GetCharactersCharacterIdPortraitOkFromJSON(json) {
return GetCharactersCharacterIdPortraitOkFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdPortraitOkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'px128x128': json['px128x128'] == null ? undefined : json['px128x128'],
'px256x256': json['px256x256'] == null ? undefined : json['px256x256'],
'px512x512': json['px512x512'] == null ? undefined : json['px512x512'],
'px64x64': json['px64x64'] == null ? undefined : json['px64x64'],
};
}
export function GetCharactersCharacterIdPortraitOkToJSON(json) {
return GetCharactersCharacterIdPortraitOkToJSONTyped(json, false);
}
export function GetCharactersCharacterIdPortraitOkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'px128x128': value['px128x128'],
'px256x256': value['px256x256'],
'px512x512': value['px512x512'],
'px64x64': value['px64x64'],
};
}