StructuredDataValidationResult class

Result of a structured data validation

Constructors

StructuredDataValidationResult.new({required bool isValid, required Map<String, String> originalData, Map<String, String>? cleanedData, required Map<String, ContentValidationResult> fieldResults, String? errorMessage})
Creates a new StructuredDataValidationResult with the given parameters
StructuredDataValidationResult.cleaned(Map<String, String> originalData, Map<String, String> cleanedData, Map<String, ContentValidationResult> fieldResults)
Creates a new StructuredDataValidationResult for cleaned structured data
factory
StructuredDataValidationResult.invalid(Map<String, String> data, Map<String, ContentValidationResult> fieldResults, {String? errorMessage})
Creates a new StructuredDataValidationResult for invalid structured data
factory
StructuredDataValidationResult.valid(Map<String, String> data, Map<String, ContentValidationResult> fieldResults)
Creates a new StructuredDataValidationResult for valid structured data
factory

Properties

cleanedData Map<String, String>?
The cleaned structured data, if any
final
errorMessage String?
The error message, if any
final
fieldResults Map<String, ContentValidationResult>
The validation results for each field
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether the structured data is valid
final
originalData Map<String, String>
The original structured data
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited