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,
      );