/* 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 ResourceThumbnail */ export interface ResourceThumbnail { /** * * @type {string} * @memberof ResourceThumbnail */ 'sm'?: string; /** * * @type {string} * @memberof ResourceThumbnail */ 'md'?: string; /** * * @type {string} * @memberof ResourceThumbnail */ 'lg'?: string; /** * * @type {string} * @memberof ResourceThumbnail */ 'xl'?: string; /** * * @type {string} * @memberof ResourceThumbnail */ 'original'?: string; } /** * Check if a given object implements the ResourceThumbnail interface. */ export function instanceOfResourceThumbnail(value: object): value is ResourceThumbnail { return true; } export function ResourceThumbnailFromJSON(json: any): ResourceThumbnail { return ResourceThumbnailFromJSONTyped(json, false); } export function ResourceThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceThumbnail { if (json == null) { return json; } const result = { } as ResourceThumbnail; if (json['sm'] !== undefined) { result['sm'] = json['sm']; } if (json['md'] !== undefined) { result['md'] = json['md']; } if (json['lg'] !== undefined) { result['lg'] = json['lg']; } if (json['xl'] !== undefined) { result['xl'] = json['xl']; } if (json['original'] !== undefined) { result['original'] = json['original']; } return result; } export function ResourceThumbnailToJSON(json: any): ResourceThumbnail { return ResourceThumbnailToJSONTyped(json, false); } export function ResourceThumbnailToJSONTyped(value?: ResourceThumbnail | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sm': value['sm'], 'md': value['md'], 'lg': value['lg'], 'xl': value['xl'], 'original': value['original'], }; }