EthereumEndpoints.fromJson constructor

EthereumEndpoints.fromJson(
  1. Map json_
)

Implementation

EthereumEndpoints.fromJson(core.Map json_)
    : this(
        beaconApiEndpoint: json_.containsKey('beaconApiEndpoint')
            ? json_['beaconApiEndpoint'] as core.String
            : null,
        beaconPrometheusMetricsApiEndpoint:
            json_.containsKey('beaconPrometheusMetricsApiEndpoint')
                ? json_['beaconPrometheusMetricsApiEndpoint'] as core.String
                : null,
        executionClientPrometheusMetricsApiEndpoint:
            json_.containsKey('executionClientPrometheusMetricsApiEndpoint')
                ? json_['executionClientPrometheusMetricsApiEndpoint']
                    as core.String
                : null,
      );