Policy constructor

Policy({
  1. int? id,
  2. String? name,
  3. String? description,
  4. bool? isDefault,
  5. bool? isEnabled,
  6. int? priority,
  7. int? ruleCount,
  8. List<PolicyRule> rules = const [],
  9. DateTime? createdAt,
})

Returns a new Policy instance.

Implementation

Policy({
  this.id,
  this.name,
  this.description,
  this.isDefault,
  this.isEnabled,
  this.priority,
  this.ruleCount,
  this.rules = const [],
  this.createdAt,
});