UNPKG

wallee

Version:
31 lines (30 loc) 1.09 kB
import { DunningCaseFromJSON, } from './DunningCase'; /** * Check if a given object implements the DunningCaseSearchResponse interface. */ export function instanceOfDunningCaseSearchResponse(value) { return true; } export function DunningCaseSearchResponseFromJSON(json) { return DunningCaseSearchResponseFromJSONTyped(json, false); } export function DunningCaseSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DunningCaseFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function DunningCaseSearchResponseToJSON(json) { return DunningCaseSearchResponseToJSONTyped(json, false); } export function DunningCaseSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }