RecognizeResponse.fromJson constructor

RecognizeResponse.fromJson(
  1. Map json_
)

Implementation

RecognizeResponse.fromJson(core.Map json_)
    : this(
        metadata: json_.containsKey('metadata')
            ? RecognitionResponseMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        results: json_.containsKey('results')
            ? (json_['results'] as core.List)
                .map((value) => SpeechRecognitionResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );