toJSON method

  1. @override
num? toJSON()
override

Converts the numeric value to JSON.

Returns:

  • The numeric value in JSON format.

Implementation

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