/* 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 StoreSpecialDateFrontendResource */ export interface StoreSpecialDateFrontendResource { /** * * @type {number} * @memberof StoreSpecialDateFrontendResource */ id?: number | null; /** * * @type {string} * @memberof StoreSpecialDateFrontendResource */ name: string; /** * * @type {string} * @memberof StoreSpecialDateFrontendResource */ hours: string; /** * * @type {object} * @memberof StoreSpecialDateFrontendResource */ date: object; /** * * @type {boolean} * @memberof StoreSpecialDateFrontendResource */ closed: boolean; /** * * @type {object} * @memberof StoreSpecialDateFrontendResource */ displayStartDate: object; /** * * @type {object} * @memberof StoreSpecialDateFrontendResource */ displayEndDate: object; } /** * Check if a given object implements the StoreSpecialDateFrontendResource interface. */ export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource { if (!('name' in value) || value['name'] === undefined) return false; if (!('hours' in value) || value['hours'] === undefined) return false; if (!('date' in value) || value['date'] === undefined) return false; if (!('closed' in value) || value['closed'] === undefined) return false; if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false; if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false; return true; } export function StoreSpecialDateFrontendResourceFromJSON(json: any): StoreSpecialDateFrontendResource { return StoreSpecialDateFrontendResourceFromJSONTyped(json, false); } export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreSpecialDateFrontendResource { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'], 'hours': json['hours'], 'date': json['date'], 'closed': json['closed'], 'displayStartDate': json['displayStartDate'], 'displayEndDate': json['displayEndDate'], }; } export function StoreSpecialDateFrontendResourceToJSON(json: any): StoreSpecialDateFrontendResource { return StoreSpecialDateFrontendResourceToJSONTyped(json, false); } export function StoreSpecialDateFrontendResourceToJSONTyped(value?: StoreSpecialDateFrontendResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'hours': value['hours'], 'date': value['date'], 'closed': value['closed'], 'displayStartDate': value['displayStartDate'], 'displayEndDate': value['displayEndDate'], }; }