UNPKG

wallee

Version:
37 lines (36 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCustomerCommentListResponse = instanceOfCustomerCommentListResponse; exports.CustomerCommentListResponseFromJSON = CustomerCommentListResponseFromJSON; exports.CustomerCommentListResponseFromJSONTyped = CustomerCommentListResponseFromJSONTyped; exports.CustomerCommentListResponseToJSON = CustomerCommentListResponseToJSON; exports.CustomerCommentListResponseToJSONTyped = CustomerCommentListResponseToJSONTyped; const CustomerComment_1 = require("./CustomerComment"); /** * Check if a given object implements the CustomerCommentListResponse interface. */ function instanceOfCustomerCommentListResponse(value) { return true; } function CustomerCommentListResponseFromJSON(json) { return CustomerCommentListResponseFromJSONTyped(json, false); } function CustomerCommentListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(CustomerComment_1.CustomerCommentFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function CustomerCommentListResponseToJSON(json) { return CustomerCommentListResponseToJSONTyped(json, false); } function CustomerCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }