SparkSqlJob.fromJson constructor

SparkSqlJob.fromJson(
  1. Map json_
)

Implementation

SparkSqlJob.fromJson(core.Map json_)
    : this(
        jarFileUris: json_.containsKey('jarFileUris')
            ? (json_['jarFileUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        loggingConfig: json_.containsKey('loggingConfig')
            ? LoggingConfig.fromJson(
                json_['loggingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        queryFileUri: json_.containsKey('queryFileUri')
            ? json_['queryFileUri'] as core.String
            : null,
        queryList: json_.containsKey('queryList')
            ? QueryList.fromJson(
                json_['queryList'] as core.Map<core.String, core.dynamic>)
            : null,
        scriptVariables: json_.containsKey('scriptVariables')
            ? (json_['scriptVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );