toJson method

String toJson()

Serializes level to JSON string.

Implementation

String toJson() => name;