/* tslint:disable */ /* eslint-disable */ /** * Endaoment API * The official Endaoment API & SDK endpoints * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface NdaoSdkFund */ export interface NdaoSdkFund { /** * The fund's Endaoment id * @type {string} * @memberof NdaoSdkFund */ id: string; /** * The fund's name * @type {string} * @memberof NdaoSdkFund */ name: string; /** * The fund's contract address * @type {string} * @memberof NdaoSdkFund */ contractAddress: string; /** * The fund's logo url * @type {string} * @memberof NdaoSdkFund */ logoUrl: string | null; /** * The fund's description * @type {string} * @memberof NdaoSdkFund */ description: string; /** * The fund's Endaoment url * @type {string} * @memberof NdaoSdkFund */ endaomentUrl: string; } /** * Check if a given object implements the NdaoSdkFund interface. */ export function instanceOfNdaoSdkFund(value: object): boolean { let isInstance = true; isInstance = isInstance && "id" in value; isInstance = isInstance && "name" in value; isInstance = isInstance && "contractAddress" in value; isInstance = isInstance && "logoUrl" in value; isInstance = isInstance && "description" in value; isInstance = isInstance && "endaomentUrl" in value; return isInstance; } export function NdaoSdkFundFromJSON(json: any): NdaoSdkFund { return NdaoSdkFundFromJSONTyped(json, false); } export function NdaoSdkFundFromJSONTyped(json: any, ignoreDiscriminator: boolean): NdaoSdkFund { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'name': json['name'], 'contractAddress': json['contractAddress'], 'logoUrl': json['logoUrl'], 'description': json['description'], 'endaomentUrl': json['endaomentUrl'], }; } export function NdaoSdkFundToJSON(value?: NdaoSdkFund | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'name': value.name, 'contractAddress': value.contractAddress, 'logoUrl': value.logoUrl, 'description': value.description, 'endaomentUrl': value.endaomentUrl, }; }