ValidationRule.fromJson constructor
Creates a ValidationRule from JSON data.
Implementation
factory ValidationRule.fromJson(Map<String, dynamic> json) {
final tempMessageJson = json['message'];
final tempMessageExpressionJson = json['messageExpression'];
final tempRuleJson = json['rule'];
final String? tempMessage = tempMessageJson;
final String? tempMessageExpression = tempMessageExpressionJson;
final String tempRule = tempRuleJson;
return ValidationRule(
message: tempMessage,
messageExpression: tempMessageExpression,
rule: tempRule,
);
}