NodeConfig.fromJson constructor

NodeConfig.fromJson(
  1. Map json_
)

Implementation

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