DataObject.decodeJson constructor

DataObject.decodeJson(
  1. String source
)

Creates a data object from source containing an encoded JSON Object.

The underlying map is an object tree as parsed by the standard json.decode() of the dart:convert package.

Implementation

factory DataObject.decodeJson(String source) =>
    DataObjectView<DataObject, DataArray>._protected(
      json.decode(source) as Map<String, Object?>,
    );