UNPKG

wallee

Version:
37 lines (36 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfConditionTypeListResponse = instanceOfConditionTypeListResponse; exports.ConditionTypeListResponseFromJSON = ConditionTypeListResponseFromJSON; exports.ConditionTypeListResponseFromJSONTyped = ConditionTypeListResponseFromJSONTyped; exports.ConditionTypeListResponseToJSON = ConditionTypeListResponseToJSON; exports.ConditionTypeListResponseToJSONTyped = ConditionTypeListResponseToJSONTyped; const ConditionType_1 = require("./ConditionType"); /** * Check if a given object implements the ConditionTypeListResponse interface. */ function instanceOfConditionTypeListResponse(value) { return true; } function ConditionTypeListResponseFromJSON(json) { return ConditionTypeListResponseFromJSONTyped(json, false); } function ConditionTypeListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ConditionType_1.ConditionTypeFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ConditionTypeListResponseToJSON(json) { return ConditionTypeListResponseToJSONTyped(json, false); } function ConditionTypeListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }