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)

56 lines (55 loc) 1.93 kB
/* 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 GetCharactersCharacterIdContractsContractIdBids200Ok interface. */ export function instanceOfGetCharactersCharacterIdContractsContractIdBids200Ok(value) { if (!('amount' in value) || value['amount'] === undefined) return false; if (!('bidId' in value) || value['bidId'] === undefined) return false; if (!('bidderId' in value) || value['bidderId'] === undefined) return false; if (!('dateBid' in value) || value['dateBid'] === undefined) return false; return true; } export function GetCharactersCharacterIdContractsContractIdBids200OkFromJSON(json) { return GetCharactersCharacterIdContractsContractIdBids200OkFromJSONTyped(json, false); } export function GetCharactersCharacterIdContractsContractIdBids200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'amount': json['amount'], 'bidId': json['bid_id'], 'bidderId': json['bidder_id'], 'dateBid': (new Date(json['date_bid'])), }; } export function GetCharactersCharacterIdContractsContractIdBids200OkToJSON(json) { return GetCharactersCharacterIdContractsContractIdBids200OkToJSONTyped(json, false); } export function GetCharactersCharacterIdContractsContractIdBids200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'amount': value['amount'], 'bid_id': value['bidId'], 'bidder_id': value['bidderId'], 'date_bid': ((value['dateBid']).toISOString()), }; }