fromJson method

  1. @override
TextSelectionThemeData? fromJson(
  1. Map<String, dynamic>? json
)
override

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