RecognizeRequest.fromJson constructor

RecognizeRequest.fromJson(
  1. Map json_
)

Implementation

RecognizeRequest.fromJson(core.Map json_)
    : this(
        audio: json_.containsKey('audio')
            ? RecognitionAudio.fromJson(
                json_['audio'] as core.Map<core.String, core.dynamic>)
            : null,
        config: json_.containsKey('config')
            ? RecognitionConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
      );