JobConfiguration.fromJson constructor

JobConfiguration.fromJson(
  1. Map json_
)

Implementation

JobConfiguration.fromJson(core.Map json_)
    : this(
        copy: json_.containsKey('copy')
            ? JobConfigurationTableCopy.fromJson(
                json_['copy'] as core.Map<core.String, core.dynamic>)
            : null,
        dryRun:
            json_.containsKey('dryRun') ? json_['dryRun'] as core.bool : null,
        extract: json_.containsKey('extract')
            ? JobConfigurationExtract.fromJson(
                json_['extract'] as core.Map<core.String, core.dynamic>)
            : null,
        jobTimeoutMs: json_.containsKey('jobTimeoutMs')
            ? json_['jobTimeoutMs'] as core.String
            : null,
        jobType: json_.containsKey('jobType')
            ? json_['jobType'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        load: json_.containsKey('load')
            ? JobConfigurationLoad.fromJson(
                json_['load'] as core.Map<core.String, core.dynamic>)
            : null,
        query: json_.containsKey('query')
            ? JobConfigurationQuery.fromJson(
                json_['query'] as core.Map<core.String, core.dynamic>)
            : null,
      );