jsObjectToJsonString function

String? jsObjectToJsonString(
  1. dynamic obj
)

Implementation

String? jsObjectToJsonString(dynamic obj) { //LegacyJavaScriptObject
  if (obj == null) return null;
  return context['JSON'].callMethod('stringify', [obj]);
}