encode method

  1. @override
String encode(
  1. Mapping object
)
override

Encodes a structured object to a serialized string.

object is the object to serialize (typically Map or List).

Returns the serialized string in the specific format (JSON/XML etc.).

Implementation

@override
String encode(Mapping object) {
  return JSON.coder!.encode(object);
}