MockRule constructor

const MockRule({
  1. required String id,
  2. required bool enabled,
  3. required String method,
  4. required String url,
  5. required String match,
  6. required MockAction action,
  7. String? name,
  8. List<String>? apps,
  9. num createdAt = 0,
  10. Object? when,
})

A rule as the desktop sends it; see MockRule.fromJson.

Implementation

const MockRule({
  required this.id,
  required this.enabled,
  required this.method,
  required this.url,
  required this.match,
  required this.action,
  this.name,
  this.apps,
  this.createdAt = 0,
  this.when,
});