/* 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'; import type { SiteLiteResource } from './SiteLiteResource'; import { SiteLiteResourceFromJSON, SiteLiteResourceFromJSONTyped, SiteLiteResourceToJSON, SiteLiteResourceToJSONTyped, } from './SiteLiteResource'; import type { DescriptionResource } from './DescriptionResource'; import { DescriptionResourceFromJSON, DescriptionResourceFromJSONTyped, DescriptionResourceToJSON, DescriptionResourceToJSONTyped, } from './DescriptionResource'; import type { SEOResource } from './SEOResource'; import { SEOResourceFromJSON, SEOResourceFromJSONTyped, SEOResourceToJSON, SEOResourceToJSONTyped, } from './SEOResource'; /** * * @export * @interface TagResource */ export interface TagResource { /** * * @type {number} * @memberof TagResource */ id: number; /** * * @type {string} * @memberof TagResource */ name: string; /** * * @type {string} * @memberof TagResource */ slug: string; /** * * @type {string} * @memberof TagResource */ type: string; /** * * @type {SiteLiteResource} * @memberof TagResource */ site: SiteLiteResource | null; /** * * @type {SEOResource} * @memberof TagResource */ seo: SEOResource | null; /** * * @type {DescriptionResource} * @memberof TagResource */ description: DescriptionResource | null; } /** * Check if a given object implements the TagResource interface. */ export function instanceOfTagResource(value: object): value is TagResource { 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 (!('type' in value) || value['type'] === undefined) return false; if (!('site' in value) || value['site'] === undefined) return false; if (!('seo' in value) || value['seo'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; return true; } export function TagResourceFromJSON(json: any): TagResource { return TagResourceFromJSONTyped(json, false); } export function TagResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagResource { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'slug': json['slug'], 'type': json['type'], 'site': SiteLiteResourceFromJSON(json['site']), 'seo': SEOResourceFromJSON(json['seo']), 'description': DescriptionResourceFromJSON(json['description']), }; } export function TagResourceToJSON(json: any): TagResource { return TagResourceToJSONTyped(json, false); } export function TagResourceToJSONTyped(value?: TagResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'slug': value['slug'], 'type': value['type'], 'site': SiteLiteResourceToJSON(value['site']), 'seo': SEOResourceToJSON(value['seo']), 'description': DescriptionResourceToJSON(value['description']), }; }