Converts the object to JSON.
Returns:
@override Map<String, dynamic>? toJSON() { return rawValue?.toJSON(); }