/* 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';
/**
* The user's contact information. This is only available if the user has chosen to make it public. This is only provided in authenticated API requests.
* @export
* @interface ProfileContactInfo
*/
export interface ProfileContactInfo {
/**
* The user's home phone number.
* @type {string}
* @memberof ProfileContactInfo
*/
homePhone?: string;
/**
* The user's work phone number.
* @type {string}
* @memberof ProfileContactInfo
*/
workPhone?: string;
/**
* The user's cell phone number.
* @type {string}
* @memberof ProfileContactInfo
*/
cellPhone?: string;
/**
* The user's email address as provided on the contact section of the profile. Might differ from their account emails.
* @type {string}
* @memberof ProfileContactInfo
*/
email?: string;
/**
* The URL to the user's contact form.
* @type {string}
* @memberof ProfileContactInfo
*/
contactForm?: string;
/**
* The URL to the user's calendar.
* @type {string}
* @memberof ProfileContactInfo
*/
calendar?: string;
}
/**
* Check if a given object implements the ProfileContactInfo interface.
*/
export function instanceOfProfileContactInfo(value: object): value is ProfileContactInfo {
return true;
}
export function ProfileContactInfoFromJSON(json: any): ProfileContactInfo {
return ProfileContactInfoFromJSONTyped(json, false);
}
export function ProfileContactInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileContactInfo {
if (json == null) {
return json;
}
return {
'homePhone': json['home_phone'] == null ? undefined : json['home_phone'],
'workPhone': json['work_phone'] == null ? undefined : json['work_phone'],
'cellPhone': json['cell_phone'] == null ? undefined : json['cell_phone'],
'email': json['email'] == null ? undefined : json['email'],
'contactForm': json['contact_form'] == null ? undefined : json['contact_form'],
'calendar': json['calendar'] == null ? undefined : json['calendar'],
};
}
export function ProfileContactInfoToJSON(json: any): ProfileContactInfo {
return ProfileContactInfoToJSONTyped(json, false);
}
export function ProfileContactInfoToJSONTyped(value?: ProfileContactInfo | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'home_phone': value['homePhone'],
'work_phone': value['workPhone'],
'cell_phone': value['cellPhone'],
'email': value['email'],
'contact_form': value['contactForm'],
'calendar': value['calendar'],
};
}