DetectedLanguage.fromJson constructor

DetectedLanguage.fromJson(
  1. Map json_
)

Implementation

DetectedLanguage.fromJson(core.Map json_)
    : this(
        confidence: json_.containsKey('confidence')
            ? (json_['confidence'] as core.num).toDouble()
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
      );