UNPKG

wallee

Version:
32 lines (31 loc) 1.15 kB
/** * Check if a given object implements the PaymentMethodBrand interface. */ export function instanceOfPaymentMethodBrand(value) { return true; } export function PaymentMethodBrandFromJSON(json) { return PaymentMethodBrandFromJSONTyped(json, false); } export function PaymentMethodBrandFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'grayImagePath': json['grayImagePath'] == null ? undefined : json['grayImagePath'], 'imagePath': json['imagePath'] == null ? undefined : json['imagePath'], 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'paymentMethod': json['paymentMethod'] == null ? undefined : json['paymentMethod'], 'id': json['id'] == null ? undefined : json['id'], }; } export function PaymentMethodBrandToJSON(json) { return PaymentMethodBrandToJSONTyped(json, false); } export function PaymentMethodBrandToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }