Policy constructor

Policy({
  1. Map<String, int> cachePaths = const {},
  2. int? cacheTtlSec,
  3. List<String> corsOrigins = const [],
  4. List<String> methods = const [],
  5. String? mode,
  6. int? orgRpm,
  7. int? perIpRpm,
  8. int? updatedAt,
  9. String? updatedBy,
  10. int? windowSec,
})

Returns a new Policy instance.

Implementation

Policy({
  this.cachePaths = const {},
  this.cacheTtlSec,
  this.corsOrigins = const [],
  this.methods = const [],
  this.mode,
  this.orgRpm,
  this.perIpRpm,
  this.updatedAt,
  this.updatedBy,
  this.windowSec,
});