serialize method Null safety

dynamic serialize(
  1. dynamic x
)

Serializes data to JSON.

Implementation

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