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