GoogleCloudMlV1PredictionInput.fromJson constructor

GoogleCloudMlV1PredictionInput.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1PredictionInput.fromJson(core.Map json_)
    : this(
        batchSize: json_.containsKey('batchSize')
            ? json_['batchSize'] as core.String
            : null,
        dataFormat: json_.containsKey('dataFormat')
            ? json_['dataFormat'] as core.String
            : null,
        inputPaths: json_.containsKey('inputPaths')
            ? (json_['inputPaths'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        maxWorkerCount: json_.containsKey('maxWorkerCount')
            ? json_['maxWorkerCount'] as core.String
            : null,
        modelName: json_.containsKey('modelName')
            ? json_['modelName'] as core.String
            : null,
        outputDataFormat: json_.containsKey('outputDataFormat')
            ? json_['outputDataFormat'] as core.String
            : null,
        outputPath: json_.containsKey('outputPath')
            ? json_['outputPath'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        runtimeVersion: json_.containsKey('runtimeVersion')
            ? json_['runtimeVersion'] as core.String
            : null,
        signatureName: json_.containsKey('signatureName')
            ? json_['signatureName'] as core.String
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
        versionName: json_.containsKey('versionName')
            ? json_['versionName'] as core.String
            : null,
      );