AnalyzeSyntaxResponse.fromJson constructor

AnalyzeSyntaxResponse.fromJson(
  1. Map json_
)

Implementation

AnalyzeSyntaxResponse.fromJson(core.Map json_)
    : this(
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        sentences: json_.containsKey('sentences')
            ? (json_['sentences'] as core.List)
                .map((value) => Sentence.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tokens: json_.containsKey('tokens')
            ? (json_['tokens'] as core.List)
                .map((value) => Token.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );