Sub2ApiAdminErrorPassthroughRule constructor

Sub2ApiAdminErrorPassthroughRule({
  1. required int id,
  2. required String name,
  3. required bool enabled,
  4. required int priority,
  5. required List<int> errorCodes,
  6. required List<String> keywords,
  7. required Sub2ApiAdminErrorPassthroughMatchMode matchMode,
  8. required List<String> platforms,
  9. required bool passthroughCode,
  10. required int? responseCode,
  11. required bool passthroughBody,
  12. required String? customMessage,
  13. required bool skipMonitoring,
  14. required String? description,
  15. required DateTime createdAt,
  16. required DateTime updatedAt,
})

Implementation

Sub2ApiAdminErrorPassthroughRule({
  required this.id,
  required this.name,
  required this.enabled,
  required this.priority,
  required List<int> errorCodes,
  required List<String> keywords,
  required this.matchMode,
  required List<String> platforms,
  required this.passthroughCode,
  required this.responseCode,
  required this.passthroughBody,
  required this.customMessage,
  required this.skipMonitoring,
  required this.description,
  required this.createdAt,
  required this.updatedAt,
}) : errorCodes = List.unmodifiable(errorCodes),
     keywords = List.unmodifiable(keywords),
     platforms = List.unmodifiable(platforms);