VmwareNodeConfig.fromJson constructor

VmwareNodeConfig.fromJson(
  1. Map json_
)

Implementation

VmwareNodeConfig.fromJson(core.Map json_)
    : this(
        bootDiskSizeGb: json_.containsKey('bootDiskSizeGb')
            ? json_['bootDiskSizeGb'] as core.String
            : null,
        cpus: json_.containsKey('cpus') ? json_['cpus'] as core.String : null,
        enableLoadBalancer: json_.containsKey('enableLoadBalancer')
            ? json_['enableLoadBalancer'] as core.bool
            : null,
        image:
            json_.containsKey('image') ? json_['image'] as core.String : null,
        imageType: json_.containsKey('imageType')
            ? json_['imageType'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.String
            : null,
        replicas: json_.containsKey('replicas')
            ? json_['replicas'] as core.String
            : null,
        taints: json_.containsKey('taints')
            ? (json_['taints'] as core.List)
                .map((value) => NodeTaint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vsphereConfig: json_.containsKey('vsphereConfig')
            ? VmwareVsphereConfig.fromJson(
                json_['vsphereConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );