encodeObj static method

String? encodeObj(
  1. Object? value
)

Converts object value to a JSON string.

Implementation

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