NodeConfig.fromJson constructor

NodeConfig.fromJson(
  1. Map json_
)

Implementation

NodeConfig.fromJson(core.Map json_)
    : this(
        composerInternalIpv4CidrBlock:
            json_['composerInternalIpv4CidrBlock'] as core.String?,
        composerNetworkAttachment:
            json_['composerNetworkAttachment'] as core.String?,
        diskSizeGb: json_['diskSizeGb'] as core.int?,
        enableIpMasqAgent: json_['enableIpMasqAgent'] as core.bool?,
        ipAllocationPolicy: json_.containsKey('ipAllocationPolicy')
            ? IPAllocationPolicy.fromJson(json_['ipAllocationPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        location: json_['location'] as core.String?,
        machineType: json_['machineType'] as core.String?,
        network: json_['network'] as core.String?,
        oauthScopes: (json_['oauthScopes'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        serviceAccount: json_['serviceAccount'] as core.String?,
        subnetwork: json_['subnetwork'] as core.String?,
        tags: (json_['tags'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
      );