EntityMention.fromJson constructor
EntityMention.fromJson(
- Map json_
Implementation
EntityMention.fromJson(core.Map json_)
: this(
probability: json_.containsKey('probability')
? (json_['probability'] as core.num).toDouble()
: null,
sentiment: json_.containsKey('sentiment')
? Sentiment.fromJson(
json_['sentiment'] as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text')
? TextSpan.fromJson(
json_['text'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);