/* 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 GlobalSearchRangeResource */ export interface GlobalSearchRangeResource { /** * * @type {number} * @memberof GlobalSearchRangeResource */ id: number; /** * * @type {string} * @memberof GlobalSearchRangeResource */ name: string; /** * * @type {string} * @memberof GlobalSearchRangeResource */ slug: string; /** * * @type {string} * @memberof GlobalSearchRangeResource */ thumbnail: string; /** * * @type {string} * @memberof GlobalSearchRangeResource */ description: string; } /** * Check if a given object implements the GlobalSearchRangeResource interface. */ export function instanceOfGlobalSearchRangeResource(value: object): value is GlobalSearchRangeResource { 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; if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; return true; } export function GlobalSearchRangeResourceFromJSON(json: any): GlobalSearchRangeResource { return GlobalSearchRangeResourceFromJSONTyped(json, false); } export function GlobalSearchRangeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResource { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'slug': json['slug'], 'thumbnail': json['thumbnail'], 'description': json['description'], }; } export function GlobalSearchRangeResourceToJSON(json: any): GlobalSearchRangeResource { return GlobalSearchRangeResourceToJSONTyped(json, false); } export function GlobalSearchRangeResourceToJSONTyped(value?: GlobalSearchRangeResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'slug': value['slug'], 'thumbnail': value['thumbnail'], 'description': value['description'], }; }