DetectModerationLabelsResponse.fromJson constructor
Implementation
factory DetectModerationLabelsResponse.fromJson(Map<String, dynamic> json) {
return DetectModerationLabelsResponse(
humanLoopActivationOutput: json['HumanLoopActivationOutput'] != null
? HumanLoopActivationOutput.fromJson(
json['HumanLoopActivationOutput'] as Map<String, dynamic>)
: null,
moderationLabels: (json['ModerationLabels'] as List?)
?.whereNotNull()
.map((e) => ModerationLabel.fromJson(e as Map<String, dynamic>))
.toList(),
moderationModelVersion: json['ModerationModelVersion'] as String?,
);
}