encode static method
Encodes a structured object to a JSON string.
container is the object to serialize (typically Map or List).
Returns the JSON-encoded string.
Implementation
static String encode(Object container) {
return coder!.encode(container);
}