UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

47 lines 2.21 kB
import { exists } from '../runtime.js'; import { RequestContactImportNewListFromJSON, RequestContactImportNewListToJSON } from './RequestContactImportNewList.js'; export function instanceOfRequestContactImport(value) { let isInstance = true; return isInstance; } export function RequestContactImportFromJSON(json) { return RequestContactImportFromJSONTyped(json, false); } export function RequestContactImportFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { fileUrl: !exists(json, 'fileUrl') ? undefined : json['fileUrl'], fileBody: !exists(json, 'fileBody') ? undefined : json['fileBody'], listIds: !exists(json, 'listIds') ? undefined : json['listIds'], notifyUrl: !exists(json, 'notifyUrl') ? undefined : json['notifyUrl'], newList: !exists(json, 'newList') ? undefined : RequestContactImportNewListFromJSON(json['newList']), emailBlacklist: !exists(json, 'emailBlacklist') ? undefined : json['emailBlacklist'], disableNotification: !exists(json, 'disableNotification') ? undefined : json['disableNotification'], smsBlacklist: !exists(json, 'smsBlacklist') ? undefined : json['smsBlacklist'], updateExistingContacts: !exists(json, 'updateExistingContacts') ? undefined : json['updateExistingContacts'], emptyContactsAttributes: !exists(json, 'emptyContactsAttributes') ? undefined : json['emptyContactsAttributes'], }; } export function RequestContactImportToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fileUrl: value.fileUrl, fileBody: value.fileBody, listIds: value.listIds, notifyUrl: value.notifyUrl, newList: RequestContactImportNewListToJSON(value.newList), emailBlacklist: value.emailBlacklist, disableNotification: value.disableNotification, smsBlacklist: value.smsBlacklist, updateExistingContacts: value.updateExistingContacts, emptyContactsAttributes: value.emptyContactsAttributes, }; } //# sourceMappingURL=RequestContactImport.js.map