/* 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 link the user has added to their profile.
* @export
* @interface Link
*/
export interface Link {
/**
* The label for the link.
* @type {string}
* @memberof Link
*/
label: string;
/**
* The URL to the link.
* @type {string}
* @memberof Link
*/
url: string;
}
/**
* Check if a given object implements the Link interface.
*/
export function instanceOfLink(value: object): value is Link {
if (!('label' in value) || value['label'] === undefined) return false;
if (!('url' in value) || value['url'] === undefined) return false;
return true;
}
export function LinkFromJSON(json: any): Link {
return LinkFromJSONTyped(json, false);
}
export function LinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Link {
if (json == null) {
return json;
}
return {
'label': json['label'],
'url': json['url'],
};
}
export function LinkToJSON(json: any): Link {
return LinkToJSONTyped(json, false);
}
export function LinkToJSONTyped(value?: Link | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'label': value['label'],
'url': value['url'],
};
}