toJson method

  1. @override
String? toJson()
override

Converts the string value to JSON.

Returns:

  • The string value in JSON format.

Implementation

@override
String? toJson() {
  return rawValue;
}