fromJson static method

String fromJson(
  1. Object data
)

Converts a Dart object represented as a Map to a JSON-encoded string.

The input data is a Map representing the Dart object.

Implementation

static String fromJson(Object data) {
  return jsonEncode(data);
}