toJSON method

  1. @override
bool? toJSON()
override

Converts the boolean value to JSON.

Returns:

  • The boolean value in JSON format.

Implementation

@override
bool? toJSON() {
  return rawValue;
}