wallee
Version:
TypeScript/JavaScript client for wallee
36 lines (35 loc) • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentContractType = instanceOfPaymentContractType;
exports.PaymentContractTypeFromJSON = PaymentContractTypeFromJSON;
exports.PaymentContractTypeFromJSONTyped = PaymentContractTypeFromJSONTyped;
exports.PaymentContractTypeToJSON = PaymentContractTypeToJSON;
exports.PaymentContractTypeToJSONTyped = PaymentContractTypeToJSONTyped;
/**
* Check if a given object implements the PaymentContractType interface.
*/
function instanceOfPaymentContractType(value) {
return true;
}
function PaymentContractTypeFromJSON(json) {
return PaymentContractTypeFromJSONTyped(json, false);
}
function PaymentContractTypeFromJSONTyped(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'],
};
}
function PaymentContractTypeToJSON(json) {
return PaymentContractTypeToJSONTyped(json, false);
}
function PaymentContractTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}