@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
48 lines (47 loc) • 1.53 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 GetCharactersCharacterIdContactsLabels200Ok interface.
*/
export function instanceOfGetCharactersCharacterIdContactsLabels200Ok(value) {
if (!('labelId' in value) || value['labelId'] === undefined)
return false;
if (!('labelName' in value) || value['labelName'] === undefined)
return false;
return true;
}
export function GetCharactersCharacterIdContactsLabels200OkFromJSON(json) {
return GetCharactersCharacterIdContactsLabels200OkFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdContactsLabels200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'labelId': json['label_id'],
'labelName': json['label_name'],
};
}
export function GetCharactersCharacterIdContactsLabels200OkToJSON(json) {
return GetCharactersCharacterIdContactsLabels200OkToJSONTyped(json, false);
}
export function GetCharactersCharacterIdContactsLabels200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'label_id': value['labelId'],
'label_name': value['labelName'],
};
}