UNPKG

wallee

Version:
31 lines (30 loc) 1.01 kB
import { RoleFromJSON, } from './Role'; /** * Check if a given object implements the RoleSearchResponse interface. */ export function instanceOfRoleSearchResponse(value) { return true; } export function RoleSearchResponseFromJSON(json) { return RoleSearchResponseFromJSONTyped(json, false); } export function RoleSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RoleFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function RoleSearchResponseToJSON(json) { return RoleSearchResponseToJSONTyped(json, false); } export function RoleSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }