NetworkMapRedactor class abstract final

Standard redaction pipeline for network toJson() maps.

Each method mutates map in place, matching the existing pattern across all interceptor data classes. This keeps the consumer code minimal:

if (redactor == null) return map;
NetworkMapRedactor.redactUrl(map, redactor);
NetworkMapRedactor.redactHeaders(map, redactor, ...);
NetworkMapRedactor.redactData(map, redactor, ...);

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

redactData(Map<String, dynamic> map, RedactionService redactor, {String key = NetworkJsonKeys.data, Set<String>? ignoredValues, Set<String>? ignoredKeys}) → void
Redacts a data/body field via RedactionService.redact.
redactHeaders(Map<String, dynamic> map, RedactionService redactor, {String key = NetworkJsonKeys.headers, Set<String>? ignoredValues, Set<String>? ignoredKeys}) Map<String, dynamic>?
Redacts a headers field using RedactionService.redactHeaders.
redactMapField(Map<String, dynamic> map, RedactionService redactor, {required String key, Set<String>? ignoredValues, Set<String>? ignoredKeys, Set<String> preserveKeys = const {}}) → void
Redacts an arbitrary map field (e.g. extra, query-parameters).
redactMultipart(Map<String, dynamic> map, RedactionService redactor, {Set<String>? ignoredValues, Set<String>? ignoredKeys}) → void
Redacts multipart request fields and file metadata.
redactPathFields(Map<String, dynamic> map, RedactionService redactor) → void
Redacts path and base-url fields.
redactRedirects(Map<String, dynamic> map, RedactionService redactor) → void
Redacts location URLs within redirect entries.
redactUrl(Map<String, dynamic> map, RedactionService redactor, {String key = NetworkJsonKeys.url}) → void
Redacts a URL field by applying RedactionService.redactUrl.