UNPKG

wallee

Version:
31 lines (30 loc) 1.17 kB
import { DebtCollectionCaseFromJSON, } from './DebtCollectionCase'; /** * Check if a given object implements the DebtCollectionCaseSearchResponse interface. */ export function instanceOfDebtCollectionCaseSearchResponse(value) { return true; } export function DebtCollectionCaseSearchResponseFromJSON(json) { return DebtCollectionCaseSearchResponseFromJSONTyped(json, false); } export function DebtCollectionCaseSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DebtCollectionCaseFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function DebtCollectionCaseSearchResponseToJSON(json) { return DebtCollectionCaseSearchResponseToJSONTyped(json, false); } export function DebtCollectionCaseSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }