UNPKG

wallee

Version:
37 lines (36 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfRoleListResponse = instanceOfRoleListResponse; exports.RoleListResponseFromJSON = RoleListResponseFromJSON; exports.RoleListResponseFromJSONTyped = RoleListResponseFromJSONTyped; exports.RoleListResponseToJSON = RoleListResponseToJSON; exports.RoleListResponseToJSONTyped = RoleListResponseToJSONTyped; const Role_1 = require("./Role"); /** * Check if a given object implements the RoleListResponse interface. */ function instanceOfRoleListResponse(value) { return true; } function RoleListResponseFromJSON(json) { return RoleListResponseFromJSONTyped(json, false); } function RoleListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Role_1.RoleFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function RoleListResponseToJSON(json) { return RoleListResponseToJSONTyped(json, false); } function RoleListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }