toJson method
Implementation
@override
Map<String, dynamic>? toJson(TextSelectionThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'cursorColor': const NullableColorConverter().toJson(
object.cursorColor,
),
'selectionColor': const NullableColorConverter().toJson(
object.selectionColor,
),
'selectionHandleColor': const NullableColorConverter().toJson(
object.selectionHandleColor,
),
};
}