wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 891 B
JavaScript
/**
* Check if a given object implements the PaymentTerminalType interface.
*/
export function instanceOfPaymentTerminalType(value) {
return true;
}
export function PaymentTerminalTypeFromJSON(json) {
return PaymentTerminalTypeFromJSONTyped(json, false);
}
export function PaymentTerminalTypeFromJSONTyped(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 PaymentTerminalTypeToJSON(json) {
return PaymentTerminalTypeToJSONTyped(json, false);
}
export function PaymentTerminalTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}