UNPKG

wallee

Version:
30 lines (29 loc) 1.04 kB
import { CustomerAddressFromJSON, } from './CustomerAddress'; /** * Check if a given object implements the CustomerAddressListResponse interface. */ export function instanceOfCustomerAddressListResponse(value) { return true; } export function CustomerAddressListResponseFromJSON(json) { return CustomerAddressListResponseFromJSONTyped(json, false); } export function CustomerAddressListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(CustomerAddressFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function CustomerAddressListResponseToJSON(json) { return CustomerAddressListResponseToJSONTyped(json, false); } export function CustomerAddressListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }