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;
}