wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 933 B
JavaScript
/**
* Check if a given object implements the CardCryptogramCreate interface.
*/
export function instanceOfCardCryptogramCreate(value) {
if (!('value' in value) || value['value'] === undefined)
return false;
return true;
}
export function CardCryptogramCreateFromJSON(json) {
return CardCryptogramCreateFromJSONTyped(json, false);
}
export function CardCryptogramCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'eci': json['eci'] == null ? undefined : json['eci'],
'value': json['value'],
};
}
export function CardCryptogramCreateToJSON(json) {
return CardCryptogramCreateToJSONTyped(json, false);
}
export function CardCryptogramCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'eci': value['eci'],
'value': value['value'],
};
}