/* 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 Thumbnail */ export interface Thumbnail { /** * * @type {number} * @memberof Thumbnail */ fileId?: number | null; /** * * @type {string} * @memberof Thumbnail */ altText?: string | null; } /** * Check if a given object implements the Thumbnail interface. */ export function instanceOfThumbnail(value: object): value is Thumbnail { return true; } export function ThumbnailFromJSON(json: any): Thumbnail { return ThumbnailFromJSONTyped(json, false); } export function ThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): Thumbnail { if (json == null) { return json; } return { 'fileId': json['file_id'] == null ? undefined : json['file_id'], 'altText': json['alt_text'] == null ? undefined : json['alt_text'], }; } export function ThumbnailToJSON(json: any): Thumbnail { return ThumbnailToJSONTyped(json, false); } export function ThumbnailToJSONTyped(value?: Thumbnail | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'file_id': value['fileId'], 'alt_text': value['altText'], }; }