ValidationErrorModel.fromJson constructor

ValidationErrorModel.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of ValidationErrorModel from a JSON object.

This method extracts the message and property properties from the json parameter and uses them to initialize a new instance of ValidationErrorModel.

Implementation

ValidationErrorModel.fromJson(Map<String, dynamic> json) {
  message = json['message'];
  property = json['property'];
}