Sub2ApiAdminCreateErrorPassthroughRuleRequest constructor

Sub2ApiAdminCreateErrorPassthroughRuleRequest({
  1. required String name,
  2. List<int> errorCodes = const <int>[],
  3. List<String> keywords = const <String>[],
  4. List<String> platforms = const <String>[],
  5. bool enabled = true,
  6. int priority = 0,
  7. Sub2ApiAdminErrorPassthroughMatchMode matchMode = Sub2ApiAdminErrorPassthroughMatchMode.any,
  8. bool passthroughCode = true,
  9. int? responseCode,
  10. bool passthroughBody = true,
  11. String? customMessage,
  12. bool skipMonitoring = false,
  13. String? description,
})

Implementation

Sub2ApiAdminCreateErrorPassthroughRuleRequest({
  required this.name,
  List<int> errorCodes = const <int>[],
  List<String> keywords = const <String>[],
  List<String> platforms = const <String>[],
  this.enabled = true,
  this.priority = 0,
  this.matchMode = Sub2ApiAdminErrorPassthroughMatchMode.any,
  this.passthroughCode = true,
  this.responseCode,
  this.passthroughBody = true,
  this.customMessage,
  this.skipMonitoring = false,
  this.description,
}) : errorCodes = List.unmodifiable(errorCodes),
     keywords = List.unmodifiable(keywords),
     platforms = List.unmodifiable(platforms);