ClassifyTextResponse.fromJson constructor

ClassifyTextResponse.fromJson(
  1. Map json_
)

Implementation

ClassifyTextResponse.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => ClassificationCategory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        languageSupported: json_.containsKey('languageSupported')
            ? json_['languageSupported'] as core.bool
            : null,
      );