TrinoJob.fromJson constructor

TrinoJob.fromJson(
  1. Map json_
)

Implementation

TrinoJob.fromJson(core.Map json_)
    : this(
        clientTags: json_.containsKey('clientTags')
            ? (json_['clientTags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        continueOnFailure: json_.containsKey('continueOnFailure')
            ? json_['continueOnFailure'] as core.bool
            : null,
        loggingConfig: json_.containsKey('loggingConfig')
            ? LoggingConfig.fromJson(
                json_['loggingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        outputFormat: json_.containsKey('outputFormat')
            ? json_['outputFormat'] as core.String
            : 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,
      );