$DetectedLanguage.fromJson constructor Null safety
- 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,
);