UNPKG

wallee

Version:
37 lines (36 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTerminalListResponse = instanceOfTerminalListResponse; exports.TerminalListResponseFromJSON = TerminalListResponseFromJSON; exports.TerminalListResponseFromJSONTyped = TerminalListResponseFromJSONTyped; exports.TerminalListResponseToJSON = TerminalListResponseToJSON; exports.TerminalListResponseToJSONTyped = TerminalListResponseToJSONTyped; const PaymentTerminal_1 = require("./PaymentTerminal"); /** * Check if a given object implements the TerminalListResponse interface. */ function instanceOfTerminalListResponse(value) { return true; } function TerminalListResponseFromJSON(json) { return TerminalListResponseFromJSONTyped(json, false); } function TerminalListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentTerminal_1.PaymentTerminalFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function TerminalListResponseToJSON(json) { return TerminalListResponseToJSONTyped(json, false); } function TerminalListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }