UNPKG

wallee

Version:
31 lines (30 loc) 1.08 kB
import { PermissionFromJSON, } from './Permission'; /** * Check if a given object implements the PermissionSearchResponse interface. */ export function instanceOfPermissionSearchResponse(value) { return true; } export function PermissionSearchResponseFromJSON(json) { return PermissionSearchResponseFromJSONTyped(json, false); } export function PermissionSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PermissionFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function PermissionSearchResponseToJSON(json) { return PermissionSearchResponseToJSONTyped(json, false); } export function PermissionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }