wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 907 B
JavaScript
/**
* Check if a given object implements the PaymentAdjustmentType interface.
*/
export function instanceOfPaymentAdjustmentType(value) {
return true;
}
export function PaymentAdjustmentTypeFromJSON(json) {
return PaymentAdjustmentTypeFromJSONTyped(json, false);
}
export function PaymentAdjustmentTypeFromJSONTyped(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 PaymentAdjustmentTypeToJSON(json) {
return PaymentAdjustmentTypeToJSONTyped(json, false);
}
export function PaymentAdjustmentTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}