KubernetesMetadata.fromJson constructor

KubernetesMetadata.fromJson(
  1. Map json_
)

Implementation

KubernetesMetadata.fromJson(core.Map json_)
    : this(
        kubernetesApiServerVersion:
            json_.containsKey('kubernetesApiServerVersion')
                ? json_['kubernetesApiServerVersion'] as core.String
                : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        nodeCount: json_.containsKey('nodeCount')
            ? json_['nodeCount'] as core.int
            : null,
        nodeProviderId: json_.containsKey('nodeProviderId')
            ? json_['nodeProviderId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vcpuCount: json_.containsKey('vcpuCount')
            ? json_['vcpuCount'] as core.int
            : null,
      );