Rule.fromJson constructor

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

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?,
  );
}