toJson method

String toJson()

Converts the DropdownItem instance to a JSON string.

Implementation

String toJson() => jsonEncode(toMap);