/* 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 SEOResource */ export interface SEOResource { /** * * @type {number} * @memberof SEOResource */ id: number; /** * * @type {string} * @memberof SEOResource */ seoTitle: string; /** * * @type {string} * @memberof SEOResource */ seoDescription: string; /** * * @type {number} * @memberof SEOResource */ siteId: number; } /** * Check if a given object implements the SEOResource interface. */ export function instanceOfSEOResource(value: object): value is SEOResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('seoTitle' in value) || value['seoTitle'] === undefined) return false; if (!('seoDescription' in value) || value['seoDescription'] === undefined) return false; if (!('siteId' in value) || value['siteId'] === undefined) return false; return true; } export function SEOResourceFromJSON(json: any): SEOResource { return SEOResourceFromJSONTyped(json, false); } export function SEOResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SEOResource { if (json == null) { return json; } return { 'id': json['id'], 'seoTitle': json['seoTitle'], 'seoDescription': json['seoDescription'], 'siteId': json['siteId'], }; } export function SEOResourceToJSON(json: any): SEOResource { return SEOResourceToJSONTyped(json, false); } export function SEOResourceToJSONTyped(value?: SEOResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'seoTitle': value['seoTitle'], 'seoDescription': value['seoDescription'], 'siteId': value['siteId'], }; }