ValidationRule.fromJson constructor
ValidationRule.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ValidationRule.fromJson(Map<String, dynamic> json) {
const JsonEncoder encoder = JsonEncoder();
final dynamic leftSide = encoder.convert(json['leftSide']);
final dynamic rightSide = encoder.convert(json['rightSide']);
return ValidationRule(
id: json['id'] + '_' + json['dataSet'],
created: json['created'],
lastUpdated: json['lastUpdated'],
name: json['name'],
displayName: json['displayName'],
displayFormName: json['displayFormName'],
description: json['description'],
instruction: json['instruction'],
displayInstruction: json['displayInstruction'],
operator: json['operator'],
periodOffset: json['periodOffset'],
periodType: json['periodType'],
leftSide: leftSide,
rightSide: rightSide,
dataSet: json['dataSet'],
dirty: json['dirty']);
}