BatchRecognizeRequest.fromJson constructor

BatchRecognizeRequest.fromJson(
  1. Map json_
)

Implementation

BatchRecognizeRequest.fromJson(core.Map json_)
    : this(
        config: json_.containsKey('config')
            ? RecognitionConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        configMask: json_.containsKey('configMask')
            ? json_['configMask'] as core.String
            : null,
        files: json_.containsKey('files')
            ? (json_['files'] as core.List)
                .map((value) => BatchRecognizeFileMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        processingStrategy: json_.containsKey('processingStrategy')
            ? json_['processingStrategy'] as core.String
            : null,
        recognitionOutputConfig: json_.containsKey('recognitionOutputConfig')
            ? RecognitionOutputConfig.fromJson(
                json_['recognitionOutputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        recognizer: json_.containsKey('recognizer')
            ? json_['recognizer'] as core.String
            : null,
      );