toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"content_hash": encodeValue(contentHash),
if (links != null) "links": encodeValue(links),
"normalized_text": encodeValue(normalizedText),
if (quarantineNotes != null)
"quarantine_notes": encodeValue(quarantineNotes),
if (reasonCodes != null) "reason_codes": encodeValue(reasonCodes),
if (sanitizedHtml != null) "sanitized_html": encodeValue(sanitizedHtml),
"scanner": encodeValue(scanner),
"status": encodeValue(status),
};