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