UNPKG

wallee

Version:
38 lines (37 loc) 1.73 kB
import { PaymentTerminalConfigurationStateFromJSON, PaymentTerminalConfigurationStateToJSON, } from './PaymentTerminalConfigurationState'; import { PaymentTerminalTypeFromJSON, PaymentTerminalTypeToJSON, } from './PaymentTerminalType'; /** * Check if a given object implements the PaymentTerminalConfiguration interface. */ export function instanceOfPaymentTerminalConfiguration(value) { return true; } export function PaymentTerminalConfigurationFromJSON(json) { return PaymentTerminalConfigurationFromJSONTyped(json, false); } export function PaymentTerminalConfigurationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'name': json['name'] == null ? undefined : json['name'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : PaymentTerminalConfigurationStateFromJSON(json['state']), 'type': json['type'] == null ? undefined : PaymentTerminalTypeFromJSON(json['type']), 'version': json['version'] == null ? undefined : json['version'], }; } export function PaymentTerminalConfigurationToJSON(json) { return PaymentTerminalConfigurationToJSONTyped(json, false); } export function PaymentTerminalConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': PaymentTerminalConfigurationStateToJSON(value['state']), 'type': PaymentTerminalTypeToJSON(value['type']), }; }