toJson method

String toJson()

Serializes the enum into a string for database storage.

Implementation

String toJson() => id;