UNPKG

wallee

Version:
30 lines (29 loc) 1.11 kB
import { RestCustomerEmailAddressFromJSON, } from './RestCustomerEmailAddress'; /** * Check if a given object implements the CustomerEmailAddressListResponse interface. */ export function instanceOfCustomerEmailAddressListResponse(value) { return true; } export function CustomerEmailAddressListResponseFromJSON(json) { return CustomerEmailAddressListResponseFromJSONTyped(json, false); } export function CustomerEmailAddressListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RestCustomerEmailAddressFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function CustomerEmailAddressListResponseToJSON(json) { return CustomerEmailAddressListResponseToJSONTyped(json, false); } export function CustomerEmailAddressListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }