BareMetalControlPlaneConfig.fromJson constructor

BareMetalControlPlaneConfig.fromJson(
  1. Map json_
)

Implementation

BareMetalControlPlaneConfig.fromJson(core.Map json_)
    : this(
        apiServerArgs: json_.containsKey('apiServerArgs')
            ? (json_['apiServerArgs'] as core.List)
                .map((value) => BareMetalApiServerArgument.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        controlPlaneNodePoolConfig:
            json_.containsKey('controlPlaneNodePoolConfig')
                ? BareMetalControlPlaneNodePoolConfig.fromJson(
                    json_['controlPlaneNodePoolConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );