|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * Sentio API |
| 5 | + * Sentio Open API for query data |
| 6 | + * |
| 7 | + * The version of the OpenAPI document: version not set |
| 8 | + * |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 11 | + * https://openapi-generator.tech |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | + |
| 15 | +import { mapValues } from '../runtime.js'; |
| 16 | +/** |
| 17 | + * |
| 18 | + * @export |
| 19 | + * @interface SolidityServiceBaseChainConfig |
| 20 | + */ |
| 21 | +export interface SolidityServiceBaseChainConfig { |
| 22 | + /** |
| 23 | + * |
| 24 | + * @type {string} |
| 25 | + * @memberof SolidityServiceBaseChainConfig |
| 26 | + */ |
| 27 | + endpoint?: string; |
| 28 | + /** |
| 29 | + * |
| 30 | + * @type {string} |
| 31 | + * @memberof SolidityServiceBaseChainConfig |
| 32 | + */ |
| 33 | + debugEndpoint?: string; |
| 34 | + /** |
| 35 | + * |
| 36 | + * @type {string} |
| 37 | + * @memberof SolidityServiceBaseChainConfig |
| 38 | + */ |
| 39 | + sourceFetcherType?: string; |
| 40 | + /** |
| 41 | + * |
| 42 | + * @type {string} |
| 43 | + * @memberof SolidityServiceBaseChainConfig |
| 44 | + */ |
| 45 | + sourceFetcherEndpoint?: string; |
| 46 | + /** |
| 47 | + * |
| 48 | + * @type {string} |
| 49 | + * @memberof SolidityServiceBaseChainConfig |
| 50 | + */ |
| 51 | + sourceFetcherTimeout?: string; |
| 52 | + /** |
| 53 | + * |
| 54 | + * @type {Array<string>} |
| 55 | + * @memberof SolidityServiceBaseChainConfig |
| 56 | + */ |
| 57 | + sourceFetcherApiKeys?: Array<string>; |
| 58 | + /** |
| 59 | + * |
| 60 | + * @type {string} |
| 61 | + * @memberof SolidityServiceBaseChainConfig |
| 62 | + */ |
| 63 | + oklinkChainShortName?: string; |
| 64 | +} |
| 65 | + |
| 66 | +/** |
| 67 | + * Check if a given object implements the SolidityServiceBaseChainConfig interface. |
| 68 | + */ |
| 69 | +export function instanceOfSolidityServiceBaseChainConfig(value: object): value is SolidityServiceBaseChainConfig { |
| 70 | + return true; |
| 71 | +} |
| 72 | + |
| 73 | +export function SolidityServiceBaseChainConfigFromJSON(json: any): SolidityServiceBaseChainConfig { |
| 74 | + return SolidityServiceBaseChainConfigFromJSONTyped(json, false); |
| 75 | +} |
| 76 | + |
| 77 | +export function SolidityServiceBaseChainConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceBaseChainConfig { |
| 78 | + if (json == null) { |
| 79 | + return json; |
| 80 | + } |
| 81 | + return { |
| 82 | + |
| 83 | + 'endpoint': json['endpoint'] == null ? undefined : json['endpoint'], |
| 84 | + 'debugEndpoint': json['debugEndpoint'] == null ? undefined : json['debugEndpoint'], |
| 85 | + 'sourceFetcherType': json['sourceFetcherType'] == null ? undefined : json['sourceFetcherType'], |
| 86 | + 'sourceFetcherEndpoint': json['sourceFetcherEndpoint'] == null ? undefined : json['sourceFetcherEndpoint'], |
| 87 | + 'sourceFetcherTimeout': json['sourceFetcherTimeout'] == null ? undefined : json['sourceFetcherTimeout'], |
| 88 | + 'sourceFetcherApiKeys': json['sourceFetcherApiKeys'] == null ? undefined : json['sourceFetcherApiKeys'], |
| 89 | + 'oklinkChainShortName': json['oklinkChainShortName'] == null ? undefined : json['oklinkChainShortName'], |
| 90 | + }; |
| 91 | +} |
| 92 | + |
| 93 | + export function SolidityServiceBaseChainConfigToJSON(json: any): SolidityServiceBaseChainConfig { |
| 94 | + return SolidityServiceBaseChainConfigToJSONTyped(json, false); |
| 95 | + } |
| 96 | + |
| 97 | + export function SolidityServiceBaseChainConfigToJSONTyped(value?: SolidityServiceBaseChainConfig | null, ignoreDiscriminator: boolean = false): any { |
| 98 | + if (value == null) { |
| 99 | + return value; |
| 100 | + } |
| 101 | + |
| 102 | + return { |
| 103 | + |
| 104 | + 'endpoint': value['endpoint'], |
| 105 | + 'debugEndpoint': value['debugEndpoint'], |
| 106 | + 'sourceFetcherType': value['sourceFetcherType'], |
| 107 | + 'sourceFetcherEndpoint': value['sourceFetcherEndpoint'], |
| 108 | + 'sourceFetcherTimeout': value['sourceFetcherTimeout'], |
| 109 | + 'sourceFetcherApiKeys': value['sourceFetcherApiKeys'], |
| 110 | + 'oklinkChainShortName': value['oklinkChainShortName'], |
| 111 | + }; |
| 112 | +} |
| 113 | + |
0 commit comments