Rule.fromJson constructor
Implementation
factory Rule.fromJson(Map<String, dynamic> json) {
return Rule(
attribute: (json['attribute'] as String?)?.toDeviceAttribute(),
operator: (json['operator'] as String?)?.toRuleOperator(),
value: json['value'] as String?,
);
}