UNPKG

wallee

Version:
40 lines (39 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCardCryptogramCreate = instanceOfCardCryptogramCreate; exports.CardCryptogramCreateFromJSON = CardCryptogramCreateFromJSON; exports.CardCryptogramCreateFromJSONTyped = CardCryptogramCreateFromJSONTyped; exports.CardCryptogramCreateToJSON = CardCryptogramCreateToJSON; exports.CardCryptogramCreateToJSONTyped = CardCryptogramCreateToJSONTyped; /** * Check if a given object implements the CardCryptogramCreate interface. */ function instanceOfCardCryptogramCreate(value) { if (!('value' in value) || value['value'] === undefined) return false; return true; } function CardCryptogramCreateFromJSON(json) { return CardCryptogramCreateFromJSONTyped(json, false); } function CardCryptogramCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'eci': json['eci'] == null ? undefined : json['eci'], 'value': json['value'], }; } function CardCryptogramCreateToJSON(json) { return CardCryptogramCreateToJSONTyped(json, false); } function CardCryptogramCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'eci': value['eci'], 'value': value['value'], }; }