ValidationResults class

A model representing the results of a validation process, including different types of messages such as information, warnings, and errors.

This class provides a structure to handle and parse validation-related messages. The messages are categorized into three types: info, warning, and error messages. Each category is represented as a list of MessageModel instances. The class supports JSON serialization and deserialization.

Example:

ValidationResults results = ValidationResults.fromJson(jsonData);

Constructors

ValidationResults.new({List<MessageModel>? infoMessages, List<MessageModel>? warningMessages, List<MessageModel>? errorMessages})
Constructs a ValidationResults instance with optional lists of messages.
ValidationResults.fromJson(Map<String, dynamic> json)
Creates a ValidationResults instance from a JSON map.
factory

Properties

errorMessages List<MessageModel>?
A list of error messages that highlight issues that prevent successful validation.
final
hashCode int
The hash code for this object.
no setterinherited
infoMessages List<MessageModel>?
A list of information messages that provide details about the validation process.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
warningMessages List<MessageModel>?
A list of warning messages that indicate potential issues with the validation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the ValidationResults instance back into a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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