serialize method

dynamic serialize(
  1. dynamic x
)

Serializes data to JSON.

Implementation

dynamic serialize(dynamic x) => json.encode(x);