shouldTransfrom static method

bool shouldTransfrom(
  1. dynamic data
)

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