toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. TextSelectionThemeData? object
)
override

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