toJsonString function Null safety

String toJsonString(
  1. Object object
)

A convient function to convert a Dart object into a JSON string.

Implementation

String toJsonString(Object object) =>
    const JsonEncoder.withIndent(' ').convert(object);