toJSON method

  1. @override
Map<String, dynamic>? toJSON()
override

Converts the object to JSON.

Returns:

  • A map representing the object in JSON format.

Implementation

@override
Map<String, dynamic>? toJSON() {
  return rawValue?.toJSON();
}