Validation.fromJson constructor
Creates a Validation from JSON data.
Implementation
factory Validation.fromJson(Map<String, dynamic> json) {
final tempExpressionJson = json['expression'];
final tempMessageJson = json['message'];
final tempMessageExpressionJson = json['messageExpression'];
final tempReasonJson = json['reason'];
final String tempExpression = tempExpressionJson;
final String? tempMessage = tempMessageJson;
final String? tempMessageExpression = tempMessageExpressionJson;
final String? tempReason = tempReasonJson;
return Validation(
expression: tempExpression,
message: tempMessage,
messageExpression: tempMessageExpression,
reason: tempReason,
);
}