UNPKG

wallee

Version:
37 lines (36 loc) 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSalesChannelListResponse = instanceOfSalesChannelListResponse; exports.SalesChannelListResponseFromJSON = SalesChannelListResponseFromJSON; exports.SalesChannelListResponseFromJSONTyped = SalesChannelListResponseFromJSONTyped; exports.SalesChannelListResponseToJSON = SalesChannelListResponseToJSON; exports.SalesChannelListResponseToJSONTyped = SalesChannelListResponseToJSONTyped; const SalesChannel_1 = require("./SalesChannel"); /** * Check if a given object implements the SalesChannelListResponse interface. */ function instanceOfSalesChannelListResponse(value) { return true; } function SalesChannelListResponseFromJSON(json) { return SalesChannelListResponseFromJSONTyped(json, false); } function SalesChannelListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SalesChannel_1.SalesChannelFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function SalesChannelListResponseToJSON(json) { return SalesChannelListResponseToJSONTyped(json, false); } function SalesChannelListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }