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