ValidationErrorModel class

A model for validation errors.

This class represents a validation error, with a message and a property. It provides methods to convert the validation error to and from a JSON object.

Constructors

ValidationErrorModel({required String? message, required dynamic property})
Creates a new instance of ValidationErrorModel.
ValidationErrorModel.fromJson(Map<String, dynamic> json)
Creates a new instance of ValidationErrorModel from a JSON object.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
The message of the validation error.
getter/setter pair
property ↔ dynamic
The property that the validation error is associated with.
getter/setter pair
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
toJson() Map<String, dynamic>
Converts the ValidationErrorModel to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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