static Map<T, dynamic> encodeMap<T>(Map<T, dynamic> data) { // if (!shouldTransfrom(data)) return data; return data.map((key, value) => MapEntry(key, encode(value))); }