wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 924 B
JavaScript
import { RoleFromJSON, } from './Role';
/**
* Check if a given object implements the RoleListResponse interface.
*/
export function instanceOfRoleListResponse(value) {
return true;
}
export function RoleListResponseFromJSON(json) {
return RoleListResponseFromJSONTyped(json, false);
}
export function RoleListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RoleFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function RoleListResponseToJSON(json) {
return RoleListResponseToJSONTyped(json, false);
}
export function RoleListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}