{"version":3,"file":"Pagination-DoCUvoII.js","sources":["../../../app/javascript/entrypoints/output/models/Pagination.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * imarket\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\n/**\n * \n * @export\n * @interface Pagination\n */\nexport interface Pagination {\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n page: number;\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n pages: number;\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n count: number;\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n items: number;\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n from: number;\n /**\n * \n * @type {number}\n * @memberof Pagination\n */\n to: number;\n /**\n * \n * @type {string}\n * @memberof Pagination\n */\n path_params?: string;\n /**\n * \n * @type {string}\n * @memberof Pagination\n */\n search_params?: string;\n}\n\n/**\n * Check if a given object implements the Pagination interface.\n */\nexport function instanceOfPagination(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"page\" in value;\n isInstance = isInstance && \"pages\" in value;\n isInstance = isInstance && \"count\" in value;\n isInstance = isInstance && \"items\" in value;\n isInstance = isInstance && \"from\" in value;\n isInstance = isInstance && \"to\" in value;\n\n return isInstance;\n}\n\nexport function PaginationFromJSON(json: any): Pagination {\n return PaginationFromJSONTyped(json, false);\n}\n\nexport function PaginationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pagination {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'page': json['page'],\n 'pages': json['pages'],\n 'count': json['count'],\n 'items': json['items'],\n 'from': json['from'],\n 'to': json['to'],\n 'path_params': !exists(json, 'path_params') ? undefined : json['path_params'],\n 'search_params': !exists(json, 'search_params') ? undefined : json['search_params'],\n };\n}\n\nexport function PaginationToJSON(value?: Pagination | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'page': value.page,\n 'pages': value.pages,\n 'count': value.count,\n 'items': value.items,\n 'from': value.from,\n 'to': value.to,\n 'path_params': value.path_params,\n 'search_params': value.search_params,\n };\n}\n\n"],"names":["PaginationFromJSON","json","PaginationFromJSONTyped","ignoreDiscriminator","exists"],"mappings":"0CAsFO,SAASA,EAAmBC,EAAuB,CAC/C,OAAAC,EAAwBD,CAAW,CAC9C,CAEgB,SAAAC,EAAwBD,EAAWE,EAA0C,CACpF,OAAwBF,GAAS,KAC3BA,EAEJ,CAEH,KAAQA,EAAK,KACb,MAASA,EAAK,MACd,MAASA,EAAK,MACd,MAASA,EAAK,MACd,KAAQA,EAAK,KACb,GAAMA,EAAK,GACX,YAAgBG,EAAOH,EAAM,aAAa,EAAgBA,EAAK,YAAjB,OAC9C,cAAkBG,EAAOH,EAAM,eAAe,EAAgBA,EAAK,cAAjB,MAAgC,CAE1F"}