wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfApplicationUserSearchResponse = instanceOfApplicationUserSearchResponse;
exports.ApplicationUserSearchResponseFromJSON = ApplicationUserSearchResponseFromJSON;
exports.ApplicationUserSearchResponseFromJSONTyped = ApplicationUserSearchResponseFromJSONTyped;
exports.ApplicationUserSearchResponseToJSON = ApplicationUserSearchResponseToJSON;
exports.ApplicationUserSearchResponseToJSONTyped = ApplicationUserSearchResponseToJSONTyped;
const ApplicationUser_1 = require("./ApplicationUser");
/**
* Check if a given object implements the ApplicationUserSearchResponse interface.
*/
function instanceOfApplicationUserSearchResponse(value) {
return true;
}
function ApplicationUserSearchResponseFromJSON(json) {
return ApplicationUserSearchResponseFromJSONTyped(json, false);
}
function ApplicationUserSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ApplicationUser_1.ApplicationUserFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ApplicationUserSearchResponseToJSON(json) {
return ApplicationUserSearchResponseToJSONTyped(json, false);
}
function ApplicationUserSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}