/* tslint:disable */
/* eslint-disable */
/**
* Gravatar Public API
* Gravatar\'s public API endpoints
*
* The version of the OpenAPI document: 3.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.js';
/**
* A gallery image a user has uploaded.
* @export
* @interface GalleryImage
*/
export interface GalleryImage {
/**
* The URL to the image.
* @type {string}
* @memberof GalleryImage
*/
url: string;
/**
* The image alt text.
* @type {string}
* @memberof GalleryImage
*/
altText?: string;
}
/**
* Check if a given object implements the GalleryImage interface.
*/
export function instanceOfGalleryImage(value: object): value is GalleryImage {
if (!('url' in value) || value['url'] === undefined) return false;
return true;
}
export function GalleryImageFromJSON(json: any): GalleryImage {
return GalleryImageFromJSONTyped(json, false);
}
export function GalleryImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GalleryImage {
if (json == null) {
return json;
}
return {
'url': json['url'],
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
};
}
export function GalleryImageToJSON(json: any): GalleryImage {
return GalleryImageToJSONTyped(json, false);
}
export function GalleryImageToJSONTyped(value?: GalleryImage | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'url': value['url'],
'alt_text': value['altText'],
};
}