shouldTransfrom static method
Implementation
static bool shouldTransfrom(dynamic data) {
return switch (data) {
NRouterJsonTransfrom _ || Enum _ => true,
Map map => map.values.any(shouldTransfrom),
List list => list.any(shouldTransfrom),
_ => _toJsonFns.containsKey(data.runtimeType),
};
}