encodeObj static method

String? encodeObj(
  1. dynamic value
)

Converts object value to a JSON string.

Implementation

static String? encodeObj(dynamic value) {
  return value == null ? null : json.encode(value);
}