JsonObject.fromMap constructor

JsonObject.fromMap({
  1. required Map<String, dynamic> data,
  2. String key = "",
})

Construct a new JsonObject using the specified key values of each JsonNode.

Implementation

factory JsonObject.fromMap(
        {required Map<String, dynamic> data, String key = ""}) =>
    JsonObject(
      data: data.map(_buildJsonNodeMap),
      key: key,
    );