/* 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 crypto currency wallet address the user accepts.
* @export
* @interface CryptoWalletAddress
*/
export interface CryptoWalletAddress {
/**
* The label for the crypto currency.
* @type {string}
* @memberof CryptoWalletAddress
*/
label: string;
/**
* The wallet address for the crypto currency.
* @type {string}
* @memberof CryptoWalletAddress
*/
address: string;
}
/**
* Check if a given object implements the CryptoWalletAddress interface.
*/
export function instanceOfCryptoWalletAddress(value: object): value is CryptoWalletAddress {
if (!('label' in value) || value['label'] === undefined) return false;
if (!('address' in value) || value['address'] === undefined) return false;
return true;
}
export function CryptoWalletAddressFromJSON(json: any): CryptoWalletAddress {
return CryptoWalletAddressFromJSONTyped(json, false);
}
export function CryptoWalletAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoWalletAddress {
if (json == null) {
return json;
}
return {
'label': json['label'],
'address': json['address'],
};
}
export function CryptoWalletAddressToJSON(json: any): CryptoWalletAddress {
return CryptoWalletAddressToJSONTyped(json, false);
}
export function CryptoWalletAddressToJSONTyped(value?: CryptoWalletAddress | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'label': value['label'],
'address': value['address'],
};
}