UNPKG

wallee

Version:
31 lines (30 loc) 1.05 kB
import { CustomerFromJSON, } from './Customer'; /** * Check if a given object implements the CustomerSearchResponse interface. */ export function instanceOfCustomerSearchResponse(value) { return true; } export function CustomerSearchResponseFromJSON(json) { return CustomerSearchResponseFromJSONTyped(json, false); } export function CustomerSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(CustomerFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function CustomerSearchResponseToJSON(json) { return CustomerSearchResponseToJSONTyped(json, false); } export function CustomerSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }