Sentence.fromJson constructor

Sentence.fromJson(
  1. Map json_
)

Implementation

Sentence.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,
      );