/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { TicketIndexResponseData } from './TicketIndexResponseData'; import { TicketIndexResponseDataFromJSON, TicketIndexResponseDataFromJSONTyped, TicketIndexResponseDataToJSON, TicketIndexResponseDataToJSONTyped, } from './TicketIndexResponseData'; /** * * @export * @interface TicketIndexResponse */ export interface TicketIndexResponse { /** * * @type {Array} * @memberof TicketIndexResponse */ data?: Array | null; /** * * @type {number} * @memberof TicketIndexResponse */ limit?: number; /** * * @type {number} * @memberof TicketIndexResponse */ offset?: number | null; } /** * Check if a given object implements the TicketIndexResponse interface. */ export function instanceOfTicketIndexResponse(value: object): value is TicketIndexResponse { return true; } export function TicketIndexResponseFromJSON(json: any): TicketIndexResponse { return TicketIndexResponseFromJSONTyped(json, false); } export function TicketIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketIndexResponse { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(TicketIndexResponseDataFromJSON)), 'limit': json['limit'] == null ? undefined : json['limit'], 'offset': json['offset'] == null ? undefined : json['offset'], }; } export function TicketIndexResponseToJSON(json: any): TicketIndexResponse { return TicketIndexResponseToJSONTyped(json, false); } export function TicketIndexResponseToJSONTyped(value?: TicketIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(TicketIndexResponseDataToJSON)), 'limit': value['limit'], 'offset': value['offset'], }; }