toJson static method

dynamic toJson(
  1. String data
)

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

The input data is a JSON-encoded string. Returns a Map representing the Dart object.

Implementation

static dynamic toJson(String data) {
  return jsonDecode(data);
}