/* 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 DescriptionResource */ export interface DescriptionResource { /** * * @type {number} * @memberof DescriptionResource */ id: number; /** * * @type {string} * @memberof DescriptionResource */ headerDescription: string; /** * * @type {string} * @memberof DescriptionResource */ footerDescription: string; /** * * @type {number} * @memberof DescriptionResource */ siteId: number; } /** * Check if a given object implements the DescriptionResource interface. */ export function instanceOfDescriptionResource(value: object): value is DescriptionResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('headerDescription' in value) || value['headerDescription'] === undefined) return false; if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false; if (!('siteId' in value) || value['siteId'] === undefined) return false; return true; } export function DescriptionResourceFromJSON(json: any): DescriptionResource { return DescriptionResourceFromJSONTyped(json, false); } export function DescriptionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResource { if (json == null) { return json; } return { 'id': json['id'], 'headerDescription': json['headerDescription'], 'footerDescription': json['footerDescription'], 'siteId': json['siteId'], }; } export function DescriptionResourceToJSON(json: any): DescriptionResource { return DescriptionResourceToJSONTyped(json, false); } export function DescriptionResourceToJSONTyped(value?: DescriptionResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'headerDescription': value['headerDescription'], 'footerDescription': value['footerDescription'], 'siteId': value['siteId'], }; }