/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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 { StoreListingIntegrationDataInstallation } from './StoreListingIntegrationDataInstallation'; import { StoreListingIntegrationDataInstallationFromJSON, StoreListingIntegrationDataInstallationFromJSONTyped, StoreListingIntegrationDataInstallationToJSON, StoreListingIntegrationDataInstallationToJSONTyped, } from './StoreListingIntegrationDataInstallation'; import type { StoreListingIntegrationCategory } from './StoreListingIntegrationCategory'; import { StoreListingIntegrationCategoryFromJSON, StoreListingIntegrationCategoryFromJSONTyped, StoreListingIntegrationCategoryToJSON, StoreListingIntegrationCategoryToJSONTyped, } from './StoreListingIntegrationCategory'; /** * * @export * @interface StoreListingIntegrationData */ export interface StoreListingIntegrationData { /** * * @type {boolean} * @memberof StoreListingIntegrationData */ 'isSingleMirror'?: boolean; /** * * @type {boolean} * @memberof StoreListingIntegrationData */ 'isDeviceSync'?: boolean; /** * * @type {Array} * @memberof StoreListingIntegrationData */ 'category'?: Array; /** * * @type {boolean} * @memberof StoreListingIntegrationData */ 'isSearchBased'?: boolean; /** * * @type {boolean} * @memberof StoreListingIntegrationData */ 'hideFromSidebar'?: boolean; /** * * @type {StoreListingIntegrationDataInstallation} * @memberof StoreListingIntegrationData */ 'installation'?: StoreListingIntegrationDataInstallation; } /** * Check if a given object implements the StoreListingIntegrationData interface. */ export function instanceOfStoreListingIntegrationData(value: object): value is StoreListingIntegrationData { return true; } export function StoreListingIntegrationDataFromJSON(json: any): StoreListingIntegrationData { return StoreListingIntegrationDataFromJSONTyped(json, false); } export function StoreListingIntegrationDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreListingIntegrationData { if (json == null) { return json; } const result = { } as StoreListingIntegrationData; if (json['isSingleMirror'] !== undefined) { result['isSingleMirror'] = json['isSingleMirror']; } if (json['isDeviceSync'] !== undefined) { result['isDeviceSync'] = json['isDeviceSync']; } if (json['category'] !== undefined) { result['category'] = (json['category'] as Array).map(StoreListingIntegrationCategoryFromJSON); } if (json['isSearchBased'] !== undefined) { result['isSearchBased'] = json['isSearchBased']; } if (json['hideFromSidebar'] !== undefined) { result['hideFromSidebar'] = json['hideFromSidebar']; } if (json['installation'] !== undefined) { result['installation'] = StoreListingIntegrationDataInstallationFromJSON(json['installation']); } return result; } export function StoreListingIntegrationDataToJSON(json: any): StoreListingIntegrationData { return StoreListingIntegrationDataToJSONTyped(json, false); } export function StoreListingIntegrationDataToJSONTyped(value?: StoreListingIntegrationData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'isSingleMirror': value['isSingleMirror'], 'isDeviceSync': value['isDeviceSync'], 'category': value['category'] == null ? undefined : ((value['category'] as Array).map(StoreListingIntegrationCategoryToJSON)), 'isSearchBased': value['isSearchBased'], 'hideFromSidebar': value['hideFromSidebar'], 'installation': StoreListingIntegrationDataInstallationToJSON(value['installation']), }; }