EntityMention.fromJson constructor

EntityMention.fromJson(
  1. Map json_
)

Implementation

EntityMention.fromJson(core.Map json_)
    : this(
        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,
      );