UNPKG

wallee

Version:
38 lines (37 loc) 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfAccountSearchResponse = instanceOfAccountSearchResponse; exports.AccountSearchResponseFromJSON = AccountSearchResponseFromJSON; exports.AccountSearchResponseFromJSONTyped = AccountSearchResponseFromJSONTyped; exports.AccountSearchResponseToJSON = AccountSearchResponseToJSON; exports.AccountSearchResponseToJSONTyped = AccountSearchResponseToJSONTyped; const Account_1 = require("./Account"); /** * Check if a given object implements the AccountSearchResponse interface. */ function instanceOfAccountSearchResponse(value) { return true; } function AccountSearchResponseFromJSON(json) { return AccountSearchResponseFromJSONTyped(json, false); } function AccountSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Account_1.AccountFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function AccountSearchResponseToJSON(json) { return AccountSearchResponseToJSONTyped(json, false); } function AccountSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }