ValidationFailure2 class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

ValidationFailure2({String? propertyName, String? errorMessage, dynamic attemptedValue, dynamic customState, Severity? severity, String? errorCode, Map<String, dynamic>? formattedMessagePlaceholderValues})
ValidationFailure2.fromJson(Map<String, dynamic> json)
factory

Properties

attemptedValue → dynamic
final
customState → dynamic
final
errorCode String?
final
errorMessage String?
final
formattedMessagePlaceholderValues Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setteroverride
propertyName String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity Severity?
final

Methods

copyWith({String? propertyName, String? errorMessage, dynamic attemptedValue, dynamic customState, Severity? severity, String? errorCode, Map<String, dynamic>? formattedMessagePlaceholderValues}) ValidationFailure2

Available on ValidationFailure2, provided by the $ValidationFailure2Extension extension

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

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const ValidationFailure2 Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(ValidationFailure2 instance)