debugJSON static method

void debugJSON(
  1. dynamic s
)

Logs a JSON object to the network logger if in debug mode.

This method is used to log a JSON object (or any dynamic object) to the network logger for easier inspection during development. It uses the NetworkLogger to log the provided object.

s The object to be logged. This can be any dynamic object, such as a map or list.

Implementation

static void debugJSON(dynamic s) {
  if (kDebugMode) {
    NetworkLogger.shared.d(s);
  }
}