wallee
Version:
TypeScript/JavaScript client for wallee
28 lines (27 loc) • 771 B
JavaScript
/**
* Check if a given object implements the CardCryptogram interface.
*/
export function instanceOfCardCryptogram(value) {
return true;
}
export function CardCryptogramFromJSON(json) {
return CardCryptogramFromJSONTyped(json, false);
}
export function CardCryptogramFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'eci': json['eci'] == null ? undefined : json['eci'],
'value': json['value'] == null ? undefined : json['value'],
};
}
export function CardCryptogramToJSON(json) {
return CardCryptogramToJSONTyped(json, false);
}
export function CardCryptogramToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}