JsonObjectOrNull.fromMap constructor

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

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

Implementation

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