@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
64 lines (63 loc) • 2.29 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.
*/
/**
* Check if a given object implements the GetAlliancesAllianceIdOk interface.
*/
export function instanceOfGetAlliancesAllianceIdOk(value) {
if (!('creatorCorporationId' in value) || value['creatorCorporationId'] === undefined)
return false;
if (!('creatorId' in value) || value['creatorId'] === undefined)
return false;
if (!('dateFounded' in value) || value['dateFounded'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('ticker' in value) || value['ticker'] === undefined)
return false;
return true;
}
export function GetAlliancesAllianceIdOkFromJSON(json) {
return GetAlliancesAllianceIdOkFromJSONTyped(json, false);
}
export function GetAlliancesAllianceIdOkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'creatorCorporationId': json['creator_corporation_id'],
'creatorId': json['creator_id'],
'dateFounded': (new Date(json['date_founded'])),
'executorCorporationId': json['executor_corporation_id'] == null ? undefined : json['executor_corporation_id'],
'factionId': json['faction_id'] == null ? undefined : json['faction_id'],
'name': json['name'],
'ticker': json['ticker'],
};
}
export function GetAlliancesAllianceIdOkToJSON(json) {
return GetAlliancesAllianceIdOkToJSONTyped(json, false);
}
export function GetAlliancesAllianceIdOkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'creator_corporation_id': value['creatorCorporationId'],
'creator_id': value['creatorId'],
'date_founded': ((value['dateFounded']).toISOString()),
'executor_corporation_id': value['executorCorporationId'],
'faction_id': value['factionId'],
'name': value['name'],
'ticker': value['ticker'],
};
}