wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 947 B
JavaScript
/**
* Check if a given object implements the PaymentTerminalReceiptType interface.
*/
export function instanceOfPaymentTerminalReceiptType(value) {
return true;
}
export function PaymentTerminalReceiptTypeFromJSON(json) {
return PaymentTerminalReceiptTypeFromJSONTyped(json, false);
}
export function PaymentTerminalReceiptTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
export function PaymentTerminalReceiptTypeToJSON(json) {
return PaymentTerminalReceiptTypeToJSONTyped(json, false);
}
export function PaymentTerminalReceiptTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}