ModerateTextResponse.fromJson constructor
ModerateTextResponse.fromJson(
- Map json_
Implementation
ModerateTextResponse.fromJson(core.Map json_)
: this(
moderationCategories: json_.containsKey('moderationCategories')
? (json_['moderationCategories'] as core.List)
.map((value) => ClassificationCategory.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);