/* 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 NdaoSdkOrg */ export interface NdaoSdkOrg { /** * The org's Endaoment id * @type {string} * @memberof NdaoSdkOrg */ id: string; /** * The org's name * @type {string} * @memberof NdaoSdkOrg */ name: string; /** * The org's EIN * @type {string} * @memberof NdaoSdkOrg */ ein: string | null; /** * The org's contract address * @type {string} * @memberof NdaoSdkOrg */ contractAddress: string; /** * The org's logo url * @type {string} * @memberof NdaoSdkOrg */ logoUrl: string; /** * The org's NTEE code * @type {string} * @memberof NdaoSdkOrg */ nteeCode: string; /** * The org's NTEE description * @type {string} * @memberof NdaoSdkOrg */ nteeDescription: string; /** * The org's description * @type {string} * @memberof NdaoSdkOrg */ description: string | null; /** * The org's Endaoment url * @type {string} * @memberof NdaoSdkOrg */ endaomentUrl: string; } /** * Check if a given object implements the NdaoSdkOrg interface. */ export function instanceOfNdaoSdkOrg(value: object): boolean { let isInstance = true; isInstance = isInstance && "id" in value; isInstance = isInstance && "name" in value; isInstance = isInstance && "ein" in value; isInstance = isInstance && "contractAddress" in value; isInstance = isInstance && "logoUrl" in value; isInstance = isInstance && "nteeCode" in value; isInstance = isInstance && "nteeDescription" in value; isInstance = isInstance && "description" in value; isInstance = isInstance && "endaomentUrl" in value; return isInstance; } export function NdaoSdkOrgFromJSON(json: any): NdaoSdkOrg { return NdaoSdkOrgFromJSONTyped(json, false); } export function NdaoSdkOrgFromJSONTyped(json: any, ignoreDiscriminator: boolean): NdaoSdkOrg { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'name': json['name'], 'ein': json['ein'], 'contractAddress': json['contractAddress'], 'logoUrl': json['logoUrl'], 'nteeCode': json['nteeCode'], 'nteeDescription': json['nteeDescription'], 'description': json['description'], 'endaomentUrl': json['endaomentUrl'], }; } export function NdaoSdkOrgToJSON(value?: NdaoSdkOrg | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'name': value.name, 'ein': value.ein, 'contractAddress': value.contractAddress, 'logoUrl': value.logoUrl, 'nteeCode': value.nteeCode, 'nteeDescription': value.nteeDescription, 'description': value.description, 'endaomentUrl': value.endaomentUrl, }; }