UNPKG

wallee

Version:
37 lines (36 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfAccountListResponse = instanceOfAccountListResponse; exports.AccountListResponseFromJSON = AccountListResponseFromJSON; exports.AccountListResponseFromJSONTyped = AccountListResponseFromJSONTyped; exports.AccountListResponseToJSON = AccountListResponseToJSON; exports.AccountListResponseToJSONTyped = AccountListResponseToJSONTyped; const Account_1 = require("./Account"); /** * Check if a given object implements the AccountListResponse interface. */ function instanceOfAccountListResponse(value) { return true; } function AccountListResponseFromJSON(json) { return AccountListResponseFromJSONTyped(json, false); } function AccountListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Account_1.AccountFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function AccountListResponseToJSON(json) { return AccountListResponseToJSONTyped(json, false); } function AccountListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }