wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentConnectorFeature = instanceOfPaymentConnectorFeature;
exports.PaymentConnectorFeatureFromJSON = PaymentConnectorFeatureFromJSON;
exports.PaymentConnectorFeatureFromJSONTyped = PaymentConnectorFeatureFromJSONTyped;
exports.PaymentConnectorFeatureToJSON = PaymentConnectorFeatureToJSON;
exports.PaymentConnectorFeatureToJSONTyped = PaymentConnectorFeatureToJSONTyped;
/**
* Check if a given object implements the PaymentConnectorFeature interface.
*/
function instanceOfPaymentConnectorFeature(value) {
return true;
}
function PaymentConnectorFeatureFromJSON(json) {
return PaymentConnectorFeatureFromJSONTyped(json, false);
}
function PaymentConnectorFeatureFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'displayName': json['displayName'] == null ? undefined : json['displayName'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function PaymentConnectorFeatureToJSON(json) {
return PaymentConnectorFeatureToJSONTyped(json, false);
}
function PaymentConnectorFeatureToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}