TaskRunnerSettings.fromJson constructor

TaskRunnerSettings.fromJson(
  1. Map json_
)

Implementation

TaskRunnerSettings.fromJson(core.Map json_)
    : this(
        alsologtostderr: json_.containsKey('alsologtostderr')
            ? json_['alsologtostderr'] as core.bool
            : null,
        baseTaskDir: json_.containsKey('baseTaskDir')
            ? json_['baseTaskDir'] as core.String
            : null,
        baseUrl: json_.containsKey('baseUrl')
            ? json_['baseUrl'] as core.String
            : null,
        commandlinesFileName: json_.containsKey('commandlinesFileName')
            ? json_['commandlinesFileName'] as core.String
            : null,
        continueOnException: json_.containsKey('continueOnException')
            ? json_['continueOnException'] as core.bool
            : null,
        dataflowApiVersion: json_.containsKey('dataflowApiVersion')
            ? json_['dataflowApiVersion'] as core.String
            : null,
        harnessCommand: json_.containsKey('harnessCommand')
            ? json_['harnessCommand'] as core.String
            : null,
        languageHint: json_.containsKey('languageHint')
            ? json_['languageHint'] as core.String
            : null,
        logDir: json_.containsKey('logDir')
            ? json_['logDir'] as core.String
            : null,
        logToSerialconsole: json_.containsKey('logToSerialconsole')
            ? json_['logToSerialconsole'] as core.bool
            : null,
        logUploadLocation: json_.containsKey('logUploadLocation')
            ? json_['logUploadLocation'] as core.String
            : null,
        oauthScopes: json_.containsKey('oauthScopes')
            ? (json_['oauthScopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        parallelWorkerSettings: json_.containsKey('parallelWorkerSettings')
            ? WorkerSettings.fromJson(json_['parallelWorkerSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        streamingWorkerMainClass:
            json_.containsKey('streamingWorkerMainClass')
                ? json_['streamingWorkerMainClass'] as core.String
                : null,
        taskGroup: json_.containsKey('taskGroup')
            ? json_['taskGroup'] as core.String
            : null,
        taskUser: json_.containsKey('taskUser')
            ? json_['taskUser'] as core.String
            : null,
        tempStoragePrefix: json_.containsKey('tempStoragePrefix')
            ? json_['tempStoragePrefix'] as core.String
            : null,
        vmId: json_.containsKey('vmId') ? json_['vmId'] as core.String : null,
        workflowFileName: json_.containsKey('workflowFileName')
            ? json_['workflowFileName'] as core.String
            : null,
      );