UNPKG

wallee

Version:
30 lines (29 loc) 1.02 kB
import { ConditionTypeFromJSON, } from './ConditionType'; /** * Check if a given object implements the ConditionTypeListResponse interface. */ export function instanceOfConditionTypeListResponse(value) { return true; } export function ConditionTypeListResponseFromJSON(json) { return ConditionTypeListResponseFromJSONTyped(json, false); } export function ConditionTypeListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ConditionTypeFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ConditionTypeListResponseToJSON(json) { return ConditionTypeListResponseToJSONTyped(json, false); } export function ConditionTypeListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }