UNPKG

wallee

Version:
32 lines (31 loc) 1.23 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the AbstractPaymentProcessorConfigurationActive interface. */ export function instanceOfAbstractPaymentProcessorConfigurationActive(value) { return true; } export function AbstractPaymentProcessorConfigurationActiveFromJSON(json) { return AbstractPaymentProcessorConfigurationActiveFromJSONTyped(json, false); } export function AbstractPaymentProcessorConfigurationActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'state': json['state'] == null ? undefined : CreationEntityStateFromJSON(json['state']), }; } export function AbstractPaymentProcessorConfigurationActiveToJSON(json) { return AbstractPaymentProcessorConfigurationActiveToJSONTyped(json, false); } export function AbstractPaymentProcessorConfigurationActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'state': CreationEntityStateToJSON(value['state']), }; }