UNPKG

wallee

Version:
33 lines (32 loc) 1.35 kB
import { CustomerAddressTypeFromJSON, CustomerAddressTypeToJSON, } from './CustomerAddressType'; import { CustomerPostalAddressCreateFromJSON, CustomerPostalAddressCreateToJSON, } from './CustomerPostalAddressCreate'; /** * Check if a given object implements the AbstractCustomerAddressActive interface. */ export function instanceOfAbstractCustomerAddressActive(value) { return true; } export function AbstractCustomerAddressActiveFromJSON(json) { return AbstractCustomerAddressActiveFromJSONTyped(json, false); } export function AbstractCustomerAddressActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'address': json['address'] == null ? undefined : CustomerPostalAddressCreateFromJSON(json['address']), 'addressType': json['addressType'] == null ? undefined : CustomerAddressTypeFromJSON(json['addressType']), }; } export function AbstractCustomerAddressActiveToJSON(json) { return AbstractCustomerAddressActiveToJSONTyped(json, false); } export function AbstractCustomerAddressActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'address': CustomerPostalAddressCreateToJSON(value['address']), 'addressType': CustomerAddressTypeToJSON(value['addressType']), }; }