/* 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 NdaoSdkSwapQuote */ export interface NdaoSdkSwapQuote { /** * The price impact this swap will produce * @type {number} * @memberof NdaoSdkSwapQuote */ priceImpact: number; /** * The expected output for this swap * @type {string} * @memberof NdaoSdkSwapQuote */ expectedUsdc: string; /** * The minimum value this swap will output * @type {string} * @memberof NdaoSdkSwapQuote */ minimumTolerableUsdc: string; } /** * Check if a given object implements the NdaoSdkSwapQuote interface. */ export function instanceOfNdaoSdkSwapQuote(value: object): boolean { let isInstance = true; isInstance = isInstance && "priceImpact" in value; isInstance = isInstance && "expectedUsdc" in value; isInstance = isInstance && "minimumTolerableUsdc" in value; return isInstance; } export function NdaoSdkSwapQuoteFromJSON(json: any): NdaoSdkSwapQuote { return NdaoSdkSwapQuoteFromJSONTyped(json, false); } export function NdaoSdkSwapQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): NdaoSdkSwapQuote { if ((json === undefined) || (json === null)) { return json; } return { 'priceImpact': json['priceImpact'], 'expectedUsdc': json['expectedUsdc'], 'minimumTolerableUsdc': json['minimumTolerableUsdc'], }; } export function NdaoSdkSwapQuoteToJSON(value?: NdaoSdkSwapQuote | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'priceImpact': value.priceImpact, 'expectedUsdc': value.expectedUsdc, 'minimumTolerableUsdc': value.minimumTolerableUsdc, }; }