/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * 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'; /** * * @export * @interface GlobalSearchCategoryResource */ export interface GlobalSearchCategoryResource { /** * * @type {number} * @memberof GlobalSearchCategoryResource */ id: number; /** * * @type {string} * @memberof GlobalSearchCategoryResource */ name: string; /** * * @type {string} * @memberof GlobalSearchCategoryResource */ slug: string; } /** * Check if a given object implements the GlobalSearchCategoryResource interface. */ export function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('slug' in value) || value['slug'] === undefined) return false; return true; } export function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource { return GlobalSearchCategoryResourceFromJSONTyped(json, false); } export function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'slug': json['slug'], }; } export function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource { return GlobalSearchCategoryResourceToJSONTyped(json, false); } export function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'slug': value['slug'], }; }