json static method

NotebookCellOutputItem json([
  1. dynamic value,
  2. String? mime
])

Factory function to create a NotebookCellOutputItem from a JSON object.

Note that this function is not expecting "stringified JSON" but an object that can be stringified. This function will throw an error when the passed value cannot be JSON-stringified.

Implementation

static _i3.NotebookCellOutputItem json([
  _i2.dynamic value,
  _i2.String? mime,
]) =>
    _i5.callMethod(
      _declaredNotebookCellOutputItem,
      'json',
      [
        value,
        mime ?? _i6.undefined,
      ],
    );