Environment.fromJson constructor

Environment.fromJson(
  1. Map json_
)

Implementation

Environment.fromJson(core.Map json_)
    : this(
        clusterManagerApiService:
            json_.containsKey('clusterManagerApiService')
                ? json_['clusterManagerApiService'] as core.String
                : null,
        dataset: json_.containsKey('dataset')
            ? json_['dataset'] as core.String
            : null,
        debugOptions: json_.containsKey('debugOptions')
            ? DebugOptions.fromJson(
                json_['debugOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        experiments: json_.containsKey('experiments')
            ? (json_['experiments'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        flexResourceSchedulingGoal:
            json_.containsKey('flexResourceSchedulingGoal')
                ? json_['flexResourceSchedulingGoal'] as core.String
                : null,
        internalExperiments: json_.containsKey('internalExperiments')
            ? json_['internalExperiments']
                as core.Map<core.String, core.dynamic>
            : null,
        sdkPipelineOptions: json_.containsKey('sdkPipelineOptions')
            ? json_['sdkPipelineOptions']
                as core.Map<core.String, core.dynamic>
            : null,
        serviceAccountEmail: json_.containsKey('serviceAccountEmail')
            ? json_['serviceAccountEmail'] as core.String
            : null,
        serviceKmsKeyName: json_.containsKey('serviceKmsKeyName')
            ? json_['serviceKmsKeyName'] as core.String
            : null,
        serviceOptions: json_.containsKey('serviceOptions')
            ? (json_['serviceOptions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        shuffleMode: json_.containsKey('shuffleMode')
            ? json_['shuffleMode'] as core.String
            : null,
        tempStoragePrefix: json_.containsKey('tempStoragePrefix')
            ? json_['tempStoragePrefix'] as core.String
            : null,
        useStreamingEngineResourceBasedBilling:
            json_.containsKey('useStreamingEngineResourceBasedBilling')
                ? json_['useStreamingEngineResourceBasedBilling'] as core.bool
                : null,
        userAgent: json_.containsKey('userAgent')
            ? json_['userAgent'] as core.Map<core.String, core.dynamic>
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.Map<core.String, core.dynamic>
            : null,
        workerPools: json_.containsKey('workerPools')
            ? (json_['workerPools'] as core.List)
                .map((value) => WorkerPool.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        workerRegion: json_.containsKey('workerRegion')
            ? json_['workerRegion'] as core.String
            : null,
        workerZone: json_.containsKey('workerZone')
            ? json_['workerZone'] as core.String
            : null,
      );