wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfBankAccountListResponse = instanceOfBankAccountListResponse;
exports.BankAccountListResponseFromJSON = BankAccountListResponseFromJSON;
exports.BankAccountListResponseFromJSONTyped = BankAccountListResponseFromJSONTyped;
exports.BankAccountListResponseToJSON = BankAccountListResponseToJSON;
exports.BankAccountListResponseToJSONTyped = BankAccountListResponseToJSONTyped;
const BankAccount_1 = require("./BankAccount");
/**
* Check if a given object implements the BankAccountListResponse interface.
*/
function instanceOfBankAccountListResponse(value) {
return true;
}
function BankAccountListResponseFromJSON(json) {
return BankAccountListResponseFromJSONTyped(json, false);
}
function BankAccountListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(BankAccount_1.BankAccountFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function BankAccountListResponseToJSON(json) {
return BankAccountListResponseToJSONTyped(json, false);
}
function BankAccountListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}