q static method
Implementation
static Map<String, dynamic> q(
Map<String, dynamic> data,
List<String>? retain,
String? cipher,
) {
if (retain == null) {
return data;
}
if (cipher == null || cipher.isEmpty) {
throw Exception("\$artifactCipher is undefined! cannot compress json!");
}
return compressEncryptJson(
data,
encryptionKey: cipher,
retainer: retain.isEmpty ? null : (k, v) => retain.contains(k),
);
}