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