GuardrailContentFilter.fromJson constructor
GuardrailContentFilter.fromJson(
- Map json_
Implementation
GuardrailContentFilter.fromJson(core.Map json_)
: this(
bannedContents: (json_['bannedContents'] as core.List?)
?.map((value) => value as core.String)
.toList(),
bannedContentsInAgentResponse:
(json_['bannedContentsInAgentResponse'] as core.List?)
?.map((value) => value as core.String)
.toList(),
bannedContentsInUserInput:
(json_['bannedContentsInUserInput'] as core.List?)
?.map((value) => value as core.String)
.toList(),
disregardDiacritics: json_['disregardDiacritics'] as core.bool?,
matchType: json_['matchType'] as core.String?,
);