/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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'; import type { GeckoContract } from './GeckoContract'; import { GeckoContractFromJSON, GeckoContractFromJSONTyped, GeckoContractToJSON, } from './GeckoContract'; /** * * @export * @interface GeckoContracts */ export interface GeckoContracts { /** * * @type {Array} * @memberof GeckoContracts */ contracts: Array; } /** * Check if a given object implements the GeckoContracts interface. */ export function instanceOfGeckoContracts(value: object): value is GeckoContracts { if (!('contracts' in value) || value['contracts'] === undefined) return false; return true; } export function GeckoContractsFromJSON(json: any): GeckoContracts { return GeckoContractsFromJSONTyped(json, false); } export function GeckoContractsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeckoContracts { if (json == null) { return json; } return { 'contracts': ((json['contracts'] as Array).map(GeckoContractFromJSON)), }; } export function GeckoContractsToJSON(value?: GeckoContracts | null): any { if (value == null) { return value; } return { 'contracts': ((value['contracts'] as Array).map(GeckoContractToJSON)), }; }