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.91 kB
/* 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 PostUiOpenwindowNewmailNewMail interface. */ export function instanceOfPostUiOpenwindowNewmailNewMail(value) { if (!('body' in value) || value['body'] === undefined) return false; if (!('recipients' in value) || value['recipients'] === undefined) return false; if (!('subject' in value) || value['subject'] === undefined) return false; return true; } export function PostUiOpenwindowNewmailNewMailFromJSON(json) { return PostUiOpenwindowNewmailNewMailFromJSONTyped(json, false); } export function PostUiOpenwindowNewmailNewMailFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'body': json['body'], 'recipients': json['recipients'], 'subject': json['subject'], 'toCorpOrAllianceId': json['to_corp_or_alliance_id'] == null ? undefined : json['to_corp_or_alliance_id'], 'toMailingListId': json['to_mailing_list_id'] == null ? undefined : json['to_mailing_list_id'], }; } export function PostUiOpenwindowNewmailNewMailToJSON(json) { return PostUiOpenwindowNewmailNewMailToJSONTyped(json, false); } export function PostUiOpenwindowNewmailNewMailToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'body': value['body'], 'recipients': value['recipients'], 'subject': value['subject'], 'to_corp_or_alliance_id': value['toCorpOrAllianceId'], 'to_mailing_list_id': value['toMailingListId'], }; }