toJSON method

String toJSON()

Converts this expression to JSON for serialization.

Implementation

String toJSON() => toString();