UNPKG

wallee

Version:
37 lines (36 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfResultPortionModel = instanceOfResultPortionModel; exports.ResultPortionModelFromJSON = ResultPortionModelFromJSON; exports.ResultPortionModelFromJSONTyped = ResultPortionModelFromJSONTyped; exports.ResultPortionModelToJSON = ResultPortionModelToJSON; exports.ResultPortionModelToJSONTyped = ResultPortionModelToJSONTyped; /** * Check if a given object implements the ResultPortionModel interface. */ function instanceOfResultPortionModel(value) { return true; } function ResultPortionModelFromJSON(json) { return ResultPortionModelFromJSONTyped(json, false); } function ResultPortionModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'offset': json['offset'] == null ? undefined : json['offset'], 'limit': json['limit'] == null ? undefined : json['limit'], 'totalCount': json['totalCount'] == null ? undefined : json['totalCount'], 'items': json['items'] == null ? undefined : json['items'], }; } function ResultPortionModelToJSON(json) { return ResultPortionModelToJSONTyped(json, false); } function ResultPortionModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }