/* 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 UpdateTagRequest */ export interface UpdateTagRequest { /** * * @type {string} * @memberof UpdateTagRequest */ name: string; /** * * @type {string} * @memberof UpdateTagRequest */ slug: string; /** * * @type {string} * @memberof UpdateTagRequest */ type: UpdateTagRequestTypeEnum; /** * * @type {string} * @memberof UpdateTagRequest */ seoTitle?: string | null; /** * * @type {string} * @memberof UpdateTagRequest */ seoDescription?: string | null; /** * * @type {string} * @memberof UpdateTagRequest */ headerDescription?: string | null; /** * * @type {string} * @memberof UpdateTagRequest */ footerDescription?: string | null; } /** * @export */ export const UpdateTagRequestTypeEnum = { NewArrival: 'new_arrival', Generic: 'generic' } as const; export type UpdateTagRequestTypeEnum = typeof UpdateTagRequestTypeEnum[keyof typeof UpdateTagRequestTypeEnum]; /** * Check if a given object implements the UpdateTagRequest interface. */ export function instanceOfUpdateTagRequest(value: object): value is UpdateTagRequest { 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; return true; } export function UpdateTagRequestFromJSON(json: any): UpdateTagRequest { return UpdateTagRequestFromJSONTyped(json, false); } export function UpdateTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTagRequest { if (json == null) { return json; } return { 'name': json['name'], 'slug': json['slug'], 'type': json['type'], 'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'], 'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'], 'headerDescription': json['header_description'] == null ? undefined : json['header_description'], 'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'], }; } export function UpdateTagRequestToJSON(json: any): UpdateTagRequest { return UpdateTagRequestToJSONTyped(json, false); } export function UpdateTagRequestToJSONTyped(value?: UpdateTagRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'slug': value['slug'], 'type': value['type'], 'seo_title': value['seoTitle'], 'seo_description': value['seoDescription'], 'header_description': value['headerDescription'], 'footer_description': value['footerDescription'], }; }