/* 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 { BridgeSupportedNetwork } from './BridgeSupportedNetwork'; import { BridgeSupportedNetworkFromJSON, BridgeSupportedNetworkFromJSONTyped, BridgeSupportedNetworkToJSON, } from './BridgeSupportedNetwork'; /** * * @export * @interface BridgeSupportedNetworks */ export interface BridgeSupportedNetworks { /** * * @type {number} * @memberof BridgeSupportedNetworks */ code: number; /** * * @type {string} * @memberof BridgeSupportedNetworks */ message?: string; /** * * @type {Array} * @memberof BridgeSupportedNetworks */ networks: Array; } /** * Check if a given object implements the BridgeSupportedNetworks interface. */ export function instanceOfBridgeSupportedNetworks(value: object): value is BridgeSupportedNetworks { if (!('code' in value) || value['code'] === undefined) return false; if (!('networks' in value) || value['networks'] === undefined) return false; return true; } export function BridgeSupportedNetworksFromJSON(json: any): BridgeSupportedNetworks { return BridgeSupportedNetworksFromJSONTyped(json, false); } export function BridgeSupportedNetworksFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeSupportedNetworks { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'networks': ((json['networks'] as Array).map(BridgeSupportedNetworkFromJSON)), }; } export function BridgeSupportedNetworksToJSON(value?: BridgeSupportedNetworks | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'networks': ((value['networks'] as Array).map(BridgeSupportedNetworkToJSON)), }; }