UNPKG

wallee

Version:
33 lines (32 loc) 1.23 kB
/** * Check if a given object implements the PaymentProcessor interface. */ export function instanceOfPaymentProcessor(value) { return true; } export function PaymentProcessorFromJSON(json) { return PaymentProcessorFromJSONTyped(json, false); } export function PaymentProcessorFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'companyName': json['companyName'] == null ? undefined : json['companyName'], 'headquartersLocation': json['headquartersLocation'] == null ? undefined : json['headquartersLocation'], 'logoPath': json['logoPath'] == null ? undefined : json['logoPath'], 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], 'productName': json['productName'] == null ? undefined : json['productName'], }; } export function PaymentProcessorToJSON(json) { return PaymentProcessorToJSONTyped(json, false); } export function PaymentProcessorToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }