/* 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'; /** * * @export * @interface StoreListingPreviewImage */ export interface StoreListingPreviewImage { /** * * @type {string} * @memberof StoreListingPreviewImage */ 'storageKey': string; /** * * @type {string} * @memberof StoreListingPreviewImage */ 'thumbnailUrl': string; /** * * @type {string} * @memberof StoreListingPreviewImage */ 'originalUrl': string; /** * * @type {string} * @memberof StoreListingPreviewImage */ 'imageUrl': string; } /** * Check if a given object implements the StoreListingPreviewImage interface. */ export function instanceOfStoreListingPreviewImage(value: object): value is StoreListingPreviewImage { if (!('storageKey' in value) || value['storageKey'] === undefined) return false; if (!('thumbnailUrl' in value) || value['thumbnailUrl'] === undefined) return false; if (!('originalUrl' in value) || value['originalUrl'] === undefined) return false; if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false; return true; } export function StoreListingPreviewImageFromJSON(json: any): StoreListingPreviewImage { return StoreListingPreviewImageFromJSONTyped(json, false); } export function StoreListingPreviewImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreListingPreviewImage { if (json == null) { return json; } const result = { } as StoreListingPreviewImage; if (json['storageKey'] !== undefined) { result['storageKey'] = json['storageKey']; } if (json['thumbnailUrl'] !== undefined) { result['thumbnailUrl'] = json['thumbnailUrl']; } if (json['originalUrl'] !== undefined) { result['originalUrl'] = json['originalUrl']; } if (json['imageUrl'] !== undefined) { result['imageUrl'] = json['imageUrl']; } return result; } export function StoreListingPreviewImageToJSON(json: any): StoreListingPreviewImage { return StoreListingPreviewImageToJSONTyped(json, false); } export function StoreListingPreviewImageToJSONTyped(value?: StoreListingPreviewImage | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'storageKey': value['storageKey'], 'thumbnailUrl': value['thumbnailUrl'], 'originalUrl': value['originalUrl'], 'imageUrl': value['imageUrl'], }; }