Encode object to a JSON string.
object
String toJsonString(Object object) => const JsonEncoder.withIndent(' ').convert(object);