PySparkBatch.fromJson constructor

PySparkBatch.fromJson(
  1. Map json_
)

Implementation

PySparkBatch.fromJson(core.Map json_)
    : this(
        archiveUris: json_.containsKey('archiveUris')
            ? (json_['archiveUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        fileUris: json_.containsKey('fileUris')
            ? (json_['fileUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        jarFileUris: json_.containsKey('jarFileUris')
            ? (json_['jarFileUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mainPythonFileUri: json_.containsKey('mainPythonFileUri')
            ? json_['mainPythonFileUri'] as core.String
            : null,
        pythonFileUris: json_.containsKey('pythonFileUris')
            ? (json_['pythonFileUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );