SafetyResult class final
The content-safety evaluation of a rendered message template.
Exposes contentHash, links, normalizedText, and quarantineNotes, among other contract fields.
Constructors
-
SafetyResult({required String contentHash, List<
ScannedLink> ? links, required String normalizedText, String? quarantineNotes, List<String> ? reasonCodes, String? sanitizedHtml, required String scanner, required ContentSafetyStatus status}) -
const
-
SafetyResult.fromJson(Map<
String, Object?> json) -
factory
Properties
- contentHash → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
links
→ List<
ScannedLink> ? -
final
- normalizedText → String
-
final
- quarantineNotes → String?
-
final
-
reasonCodes
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sanitizedHtml → String?
-
final
- scanner → String
-
final
- status → ContentSafetyStatus
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited