toJson method

  1. @override
String toJson()
override

Converts the object to a JSON representation.

Returns the JSON representation of the object.

Implementation

@override
String toJson() => name;