SpeechContext.fromJson constructor

SpeechContext.fromJson(
  1. Map json_
)

Implementation

SpeechContext.fromJson(core.Map json_)
    : this(
        boost: json_.containsKey('boost')
            ? (json_['boost'] as core.num).toDouble()
            : null,
        phrases: json_.containsKey('phrases')
            ? (json_['phrases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );