OrderedJob.fromJson constructor

OrderedJob.fromJson(
  1. Map json_
)

Implementation

OrderedJob.fromJson(core.Map json_)
    : this(
        flinkJob: json_.containsKey('flinkJob')
            ? FlinkJob.fromJson(
                json_['flinkJob'] as core.Map<core.String, core.dynamic>)
            : null,
        hadoopJob: json_.containsKey('hadoopJob')
            ? HadoopJob.fromJson(
                json_['hadoopJob'] as core.Map<core.String, core.dynamic>)
            : null,
        hiveJob: json_.containsKey('hiveJob')
            ? HiveJob.fromJson(
                json_['hiveJob'] as core.Map<core.String, core.dynamic>)
            : 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,
        pigJob: json_.containsKey('pigJob')
            ? PigJob.fromJson(
                json_['pigJob'] as core.Map<core.String, core.dynamic>)
            : null,
        prerequisiteStepIds: json_.containsKey('prerequisiteStepIds')
            ? (json_['prerequisiteStepIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        prestoJob: json_.containsKey('prestoJob')
            ? PrestoJob.fromJson(
                json_['prestoJob'] as core.Map<core.String, core.dynamic>)
            : null,
        pysparkJob: json_.containsKey('pysparkJob')
            ? PySparkJob.fromJson(
                json_['pysparkJob'] as core.Map<core.String, core.dynamic>)
            : null,
        scheduling: json_.containsKey('scheduling')
            ? JobScheduling.fromJson(
                json_['scheduling'] as core.Map<core.String, core.dynamic>)
            : null,
        sparkJob: json_.containsKey('sparkJob')
            ? SparkJob.fromJson(
                json_['sparkJob'] as core.Map<core.String, core.dynamic>)
            : null,
        sparkRJob: json_.containsKey('sparkRJob')
            ? SparkRJob.fromJson(
                json_['sparkRJob'] as core.Map<core.String, core.dynamic>)
            : null,
        sparkSqlJob: json_.containsKey('sparkSqlJob')
            ? SparkSqlJob.fromJson(
                json_['sparkSqlJob'] as core.Map<core.String, core.dynamic>)
            : null,
        stepId: json_.containsKey('stepId')
            ? json_['stepId'] as core.String
            : null,
        trinoJob: json_.containsKey('trinoJob')
            ? TrinoJob.fromJson(
                json_['trinoJob'] as core.Map<core.String, core.dynamic>)
            : null,
      );