AnalyzeEntitySentimentResponse.fromJson constructor

AnalyzeEntitySentimentResponse.fromJson(
  1. Map json_
)

Implementation

AnalyzeEntitySentimentResponse.fromJson(core.Map json_)
    : this(
        entities: json_.containsKey('entities')
            ? (json_['entities'] as core.List)
                .map((value) => Entity.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
      );