EthereumDetails.fromJson constructor

EthereumDetails.fromJson(
  1. Map json_
)

Implementation

EthereumDetails.fromJson(core.Map json_)
    : this(
        additionalEndpoints: json_.containsKey('additionalEndpoints')
            ? EthereumEndpoints.fromJson(json_['additionalEndpoints']
                as core.Map<core.String, core.dynamic>)
            : null,
        apiEnableAdmin: json_.containsKey('apiEnableAdmin')
            ? json_['apiEnableAdmin'] as core.bool
            : null,
        apiEnableDebug: json_.containsKey('apiEnableDebug')
            ? json_['apiEnableDebug'] as core.bool
            : null,
        consensusClient: json_.containsKey('consensusClient')
            ? json_['consensusClient'] as core.String
            : null,
        executionClient: json_.containsKey('executionClient')
            ? json_['executionClient'] as core.String
            : null,
        gethDetails: json_.containsKey('gethDetails')
            ? GethDetails.fromJson(
                json_['gethDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        nodeType: json_.containsKey('nodeType')
            ? json_['nodeType'] as core.String
            : null,
        validatorConfig: json_.containsKey('validatorConfig')
            ? ValidatorConfig.fromJson(json_['validatorConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
      );