UNPKG

wallee

Version:
31 lines (30 loc) 1.13 kB
import { ApplicationUserFromJSON, } from './ApplicationUser'; /** * Check if a given object implements the ApplicationUserSearchResponse interface. */ export function instanceOfApplicationUserSearchResponse(value) { return true; } export function ApplicationUserSearchResponseFromJSON(json) { return ApplicationUserSearchResponseFromJSONTyped(json, false); } export function ApplicationUserSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ApplicationUserFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ApplicationUserSearchResponseToJSON(json) { return ApplicationUserSearchResponseToJSONTyped(json, false); } export function ApplicationUserSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }