q static method

Map<String, dynamic> q(
  1. Map<String, dynamic> data,
  2. List<String>? retain,
  3. String? cipher
)

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),
  );
}